I want to make a script to insert about 100 users into the Drupal 6 database - their username, password and password.
After reading about the PHP class that uses Drupal 6, I'm not sure I can do this. My method was to send a message like “Hello, x! Your new password is y” to each user, and then insert the hashed “y” into the Drupal user table.
I know that Drupal returns md5. But this is not just the original md5 password, but a very mixed password (using salt and other methods).
I looked at Portable PHP hashing frames . Using Drupal, but I don’t think it only works with the copy + paste method.
So my question is: can I make a PHP function that returns a valid Drupal 6 password hash to insert into my user table?
php passwords drupal password-hash
nevvermind
source share