-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get the right order of salts generation #11
Comments
Did you mean BTW My function uses WP core: https://github.com/WordPress/WordPress/blob/master/wp-admin/setup-config.php#L285-L314 |
Yes sorry, that's what I meant. In my opinion we should stick to the official WordPress code for generating any random string for salts. Unfortunately they haven't put this code into easily usable functions or a class or even a library so that makes it a bit more difficult to use. See: It's a bit of a mess. It's in the middle of a script that outputs a bunch of stuff. There is also this inside the WordPress core: The function you use is considered last resort: I assume the 1.1 Salts API uses the best method for generating these random strings. So that would still be the safest and best way of generating the salts until the core developers decide to put that |
You may open a core ticket to move that piece of code into a function. |
random_int()
php7 functiongenerate_password()
See:
wordpress/wp-admin/setup-config.php
https://github.com/szepeviktor/wordpress-plugin-construction/blob/master/wp-safe-salt.php
The text was updated successfully, but these errors were encountered: