The easiest way to generate a password is to use the Digest::MD5 package with Perl:perl -MDigest::MD5=md5_hex -e 'print md5_hex($ARGV[0]),"\n"' password