Stand Aside, Sysadmin
Manly yes, but I like it too.
Create a salted MD5 hash
Posted by on April 24, 2010
A salted md5 hash can be created using the makepasswd utility.
Example usage:
echo “examplepassword” | makepasswd –clearfrom=- –crypt-md5 | awk ‘{ print $2 }’
This will return an md5 hash, suitable for shadow purposes. Notice that this produces a different result every time it is run – this is the salt in action, making hashes far harder to crack.