Quickly generate a crypted password

How to generate a crypted password quickly from the command line

perl -e 'print crypt("your_passwd", "XX");'

Change XX to any two random printable characters.

This will print out the 13 character DES encrypted password thatyou can copy and paste into the /etc/passwd file or for .htaccess password files.

Last updated: 08/03/2005