szepeviktor / wordpress-speedtest

VPS Speedtest for WordPress with 160 results: 🏆 UpCloud (raw memory and CPU benchmark)
https://www.upcloud.com/register/?promo=U29Q8S
GNU General Public License v3.0
46 stars 14 forks source link

IDEA: generate dynamic salts for wp-config.php #4

Closed gnanet closed 7 years ago

gnanet commented 7 years ago

Instead of putting pre-defined salts, you could implement a first-time-run function which generates the salts into a template wp-config.php, and saves it on the first usage.

This would allow random salts, but prevents unwanted change of the salt on every call to wp-config.php

The generator function could be this one.

And a complete PHP-CLI project for generating wp-config.php from a template is this one

What do you think about this idea?

szepeviktor commented 7 years ago

Thank you. We have an overdose of salts https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/wp-safe-salt.php https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/wp-safe-salt.sh

szepeviktor commented 7 years ago

Actually this project runs for 10 minutes, see the readme. And stores no data at all. It comes from this archive

This is a speedtest. I could even publish the user passwords!

szepeviktor commented 7 years ago

@gnanet You could use WP-CLI for every WordPress-related operation.