Support » Developing with WordPress » check plain password against database
8 years, 5 months ago
WordPress Version 2.6.2
I am currently trying to develop a plugin that lets users login to customized posts by merely entering their user password, yet not necessarily their username.
Now I need to check a plain text password against user_pass in the database.
As of now I am using a standard installation, having not touched AUTH_KEY, SECURE_AUTH_KEY or LOGGED_IN_KEY.
user_pass contains $P$9N57BH8U2F6jYtGP.1oluN9VF63FsI1 (plaintext: carrot)
How would I arrive in encrypting “carrot” to the above string?
MD5 hash is what is used in the database.
thats not an md5 hash, thats a salted md5 hash.
8 years, 4 months ago
right, but what’s the salt here?
on a standard installation, not having touched AUTH_KEY, SECURE_AUTH_KEY or LOGGED_IN_KEY i can’t help but wonder.
what is the code?