What is sha?
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.
The C implementations of the algorithms might be useful in other projects as well.

Copyright & License
sha (the program and algorithm implementations) are Copyright © 2001-2003 Allan Saddi. sha is distributed under a BSD-style license.

Download
The current version of sha is 1.0.4. It is known to build on FreeBSD, Darwin, OpenBSD, Debian Linux, and Solaris (using gcc) on a variety of architectures.

Download sha-1.0.4

Download sha-1.1 (includes HMAC support)

Documentation
View the man page for sha(1) or the technical note about the SHA implementations.

Please send any comments about sha or this page to Allan Saddi.

SourceForge Logo