[wp-hackers] Password Generation

Alexander Concha alex at buayacorp.com
Thu Oct 6 09:24:23 UTC 2011


On Thu, Oct 6, 2011 at 11:14 AM, Scott Wilcox <scottw at lesniakswann.com> wrote:
> Hello,
>
> I've written a script to process a complex import of users from one system into wordpress. The only part I'm having issue with is generating each users password, as from the database they don't' appear to be straight MD5 hashes of passwords.
>
> Can anyone shed any light on the correct way to generate passwords?
>
> Are they concatenated salt and hashes?

You can use wp_hash_password. I don't know how are you creating users,
but you may want to use wp_insert_user which takes care of that.

-- 
Alexander Concha
http://www.buayacorp.com


More information about the wp-hackers mailing list