[wp-hackers] [WordPress] How to compare salted password

Pasquale Puzio 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
> http://lists.automattic.com/mailman/listinfo/wp-hackers

Dott. Pasquale Puzio
info at pasqualepuzio.it
340 5026359

More information about the wp-hackers mailing list