I need to insert users into a Wordpress blog through a PHP script or MySQL, and I have a simple text password. I thought I could do something like this:
$query = "INSERT INTO $new_db.wp_users (user_login, user_pass, user_nicename) select user_email, md5(user_password), user_name from $source_db.users";
But all passwords look different than Wordpress passwords now look. All passwords start with $P$B
From reading, he says that there is salt ... is there a way to take a password, for example test123, and turn it into the encrypted password that Wordpress expects?
Trace source share