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