HORIZON HASKELLDocslts/ghc-10.0.x8c2f8e82026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehashing-0.1.1.0Haskell2010

Crypto.Hash

pure hash interface, supported hash algorithms:

  • SHA1

  • SHA224/SHA256

  • SHA384/SHA512

  • MD5

  • Whirlpool

NOTE: performance is just about 1 / 5 - 1 / 15 of C/ASM implementations.

  • 7 types
  • 1 class
  • 2 values
classclass HashAlgorithm a where
#

Hash algorithm interface

provides classic init/update/final API. however, user should call higher level API such as hash or hashLazy.

Instances7HashAlgorithm, …
datadata SHA1
#
Instances3Eq, Show, HashAlgorithm
  • Eq SHA1Defined in hashing-0.1.1.0 · Crypto.Hash.SHA1
  • Show SHA1Defined in hashing-0.1.1.0 · Crypto.Hash.SHA1
  • HashAlgorithm SHA1Defined in hashing-0.1.1.0 · Crypto.Hash.SHA1
datadata SHA224
#
Instances3Eq, Show, HashAlgorithm
datadata SHA256
#
Instances3Eq, Show, HashAlgorithm
datadata SHA384
#
Instances3Eq, Show, HashAlgorithm
datadata SHA512
#
Instances3Eq, Show, HashAlgorithm
datadata MD5
#
Instances3Eq, Show, HashAlgorithm
  • Eq MD5Defined in hashing-0.1.1.0 · Crypto.Hash.MD5
  • Show MD5Defined in hashing-0.1.1.0 · Crypto.Hash.MD5
  • HashAlgorithm MD5Defined in hashing-0.1.1.0 · Crypto.Hash.MD5