in reply to Ecrypting passwords

Take a look at Crypt::PasswdMD5, as it can do exactly what you want in all-Perl.

Best regards

-lem, but some call me fokat