To write the SHA-1 of a file standard shell redirection can be used. The SHA-1 will be printed to standard output printing first the SHA-1 checksum then the name of the file. To get the SHA-1 of a file pass the path of a file to the sha1sum command. Although SHA-1 is no longer considered secure against well funded opponents it is still widely used to verify files. SHA-1 produces a 160-bit (20 byte) hash value known as a message digest. As such the sha1sum command can be used to attempt to verify the integrity of a file. This allows it be compared to a published message digest to check whether the file is unmodified from the original. The sha1sum command computes the SHA-1 message digest of a file. Examples of reading a SHA-1 message digest, writing a SHA-1 message digest to a file, and checking a SHA-1 message digest.Įstimated reading time: 3 minutes Table of contents Last updated Saturday, Linux and Unix sha1sum command tutorial with examples Tutorial on using sha1sum, a UNIX and Linux command to compute and check a SHA-1 message digest. Linux and Unix sha1sum command tutorial with examples | George Ornbo
0 Comments
Leave a Reply. |