Files
amiga-sha/README.md
T

8 lines
762 B
Markdown
Raw Normal View History

2015-06-13 19:38:25 +02:00
# Introduction
2015-06-11 22:09:21 +02:00
2015-06-13 19:38:25 +02:00
sha is a simple program that hashes files. It uses the National Institute of Standards and Technology's Secure Hash Algorithm. It can use SHA-1, SHA-256, SHA-384, or SHA-512, which generate respectively, hashes of 160, 256, 384, or 512 bits. sha can be used in scripts to do, for example, file integrity checking.
2015-06-11 22:09:21 +02:00
2015-06-13 19:38:25 +02:00
Using sha is simple. Just pass the names of one or more files on the command line.
2015-06-11 22:09:21 +02:00
2015-06-13 19:38:25 +02:00
You may want to perform a sanity check on sha before relying on it. A program called "shatest" is built along with sha. If you run shatest, it will display the results of running the various SHA algorithms on a set of known test vectors. If the resultant hash matches what is expected, "PASS" will be displayed. Otherwise it will display "FAIL."