Stand Aside, Sysadmin

Manly yes, but I like it too.

Create a salted MD5 hash

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.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: