canimus
10/23/2017 - 10:45 AM

Generate SHA1 for file

How to create a fingerprint for a file using the SHA1 algorithm. Never use md5 because it has been cracked and can produce collisions.

# This generates the sha1 for a file
# unique identifier of its contents.
openssl dgst -sha1 file.png