I’ve recently messed up a script installation and the admin user and password did not import successfully into the database. I have inserted the admin user manually, but I had no idea what the password looked like using md5 encoding. So I wrote a simple script creating an encoded password, and I imported the resulting value into the database. Pretty simple. The script is the following:
<?php $a = md5('password'); echo $a; ?>
It will print an alphanumeric encoded string which can be inserted in any database table.