A quick and easy way to verify your password’s SHA1 hash for Linux
Posted by keith in SecurityIn light of today’s Linkedin.com’s account compromise (All 6.5 million of them) I figured it would a good day to show how easy it us to create a hash of any of your passwords. Sure there are websites out there that can do this for you however there’s no promise that they aren’t saving those passwords and sure even though you may not be providing a username or email address with those passwords it’s usually better to be safe than sorry.You must have access to a Linux server to do this, so you can SSH or console into one.
Ok so with that out of the way this is how you do it.
1. Log into the Linux server via SSH or console (direct / local access)
2. You’re going to use the following syntax, echo -n “password” | sha1sum. Basically you are saying to show me my hash (Sha1sum) for the password (“password”) that I’ve provided. Make sure you change the “password” with your actual password.
3. The result will be a hash that is similar to the following; d2841a2cc80e25a02349261d748ef96f9de329ad. A Sha1sum is 40 characters so that’s how many the result will be. And no, Sha1 has not been cracked as of yet.
![]()
4. Make sure you run a “history -c” to clear the echo command from your history.
That’s it! Show your friends, show your family. And you’ve just learned yet another security trick to add to your knowledge!
Tags: hash, sha1

Entries (RSS)