[wp-hackers] [WordPress] How to compare salted password
pasquale.puzio at gmail.com
Tue Jun 28 16:04:19 UTC 2011
Thanks, I've solved before reading your suggestion using
wp_check_password function :-)
2011/6/28 Andrew Nacin <wp at andrewnacin.com>:
> On Tue, Jun 28, 2011 at 11:38 AM, Pasquale Puzio
> <pasquale.puzio at gmail.com>wrote:
>> Hi all,
>> I need to compare a specific password with all password stored in the
>> database. I know that WordPress uses MD5 to cypher passwords but uses
>> also a salt, so I can't compare my specific password, after MD5
>> cyphering, with the stored by WordPress one.
>> Which is the salt used by WordPress to cypher passwords? How can I
>> apply the same salt for comparing?
> WordPress uses the phpass library. You should check out how
> wp_check_password() works, or just hash it with wp_hash_password() and use
> that against the DB.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Dott. Pasquale Puzio
info at pasqualepuzio.it
More information about the wp-hackers