Encrypting password for “admin”
-
Hi,
I’m writing a script that will make an “install” of a wordpress blog, for each of the users who signup to my site.
So far, I’ve done an install – and “dumped” the MySQL data into a .sql file.
My install script then goes through that .sql file, replaces the wp_ and URL’s to the blog – and then put it into the “blog” database.
Now, this is all working fine – but does anyone know how to encrypt a password? (I had a look in the install.php script, but I’m working with Perl, so don’t know how to approach this :/)
Obvioulsy just keeping the same password as I did for the install would be stupid – cos everyone would have the same admin password for their blogs (and thus would be a huge security hole, as I doubt many people would change their admin password :p)
Anyone got any suggestions on how to do this?
TIA
Andy
- The topic ‘Encrypting password for “admin”’ is closed to new replies.