[wp-hackers] Password Generation
scottw at lesniakswann.com
Thu Oct 6 09:26:20 UTC 2011
User records are now already in place, so I just need to update a few fields and passwords. I'll dig into wp_hash_password, thank you!
On 6 Oct 2011, at 10:24, Alexander Concha wrote:
> On Thu, Oct 6, 2011 at 11:14 AM, Scott Wilcox <scottw at lesniakswann.com> wrote:
>> 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.
More information about the wp-hackers