Using openssl for generating a SHA1 Hash

Today, i stumbled a website, where it had some good resource of generating a SHA1 hash of a file using the executable command ‘openssl’. SHA1 is a Hash used for checking the integrity of the file. The command for generating the hash is

openssl dgst -sha1 <filename>

For example, consider a file image.jpg. The command that will generate a SHA1 digest is

openssl dgst -sha1 image.jpg

Advertisements
This entry was posted in Cryptography, security, Technology. Bookmark the permalink.

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 )

Google+ photo

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

Connecting to %s