SHA-1.0.4: Implementations of the SHA suite of message digest functions

Data.Digest.Pure.SHA

Description

Pure implementations of the SHA suite of hash functions. The implementation
is basically an unoptimized translation of FIPS 180-2 into Haskell. If you're
looking for performance, you probably won't find it here.

Documentation

Compute the SHA-1 hash of the given ByteString. The output is guaranteed
to be exactly 160 bits, or 20 bytes, long. This is a good default for
programs that need a good, but not necessarily hyper-secure, hash function.

Compute the SHA-224 hash of the given ByteString. Note that SHA-224 and
SHA-384 differ only slightly from SHA-256 and SHA-512, and use truncated
versions of the resulting hashes. So using 224/384 may not, in fact, save
you very much ...

Compute the SHA-256 hash of the given ByteString. The output is guaranteed
to be exactly 256 bits, or 32 bytes, long. If your security requirements
are pretty serious, this is a good choice. For truly significant security
concerns, however, you might try one of the bigger options.