Package Info

ghc-cryptohash


Collection of crypto hashes, fast, pure and practical


Unspecified

DEPRECATED: this library is still fully functional, but please use cryptonite for new projects and convert old one to use cryptonite. This is where things are at nowadays.

A collection of crypto hashes, with a practical incremental and one-pass, pure APIs, with performance close to the fastest implementations available in other languages.

The implementations are made in C with a haskell FFI wrapper that hide the C implementation.

Simple examples using the unified API:

> import Crypto.Hash > > sha1 :: ByteString -> Digest SHA1 > sha1 = hash > > hexSha3_512 :: ByteString -> String > hexSha3_512 bs = show (hash bs :: Digest SHA3_512)

Simple examples using the module API:

> import qualified Crypto.Hash.SHA1 as SHA1 > > main = putStrLn $ show $ SHA1.hash (Data.ByteString.pack [0..255])

> import qualified Crypto.Hash.SHA3 as SHA3 > > main = putStrLn $ show $ digest > where digest = SHA3.finalize ctx > ctx = foldl' SHA3.update iCtx (map Data.ByteString.pack [ [1,2,3], [4,5,6] ] > iCtx = SHA3.init 224.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/cryptohash

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.11.9-bp155.3.15 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-bp154.2.12 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-bp153.1.20 info GA Release 2021-04-08 15 SP3
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-bp152.4.10 info GA Release 2020-06-16 15 SP2
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-bp151.4.2 info GA Release 2019-07-17 15 SP1
  • ppc64le
  • s390x
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-bp151.3.13 info GA Release 2019-05-31 15 SP1
  • AArch64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-bp150.2.7 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-2.8 info 5585 2016-09-14 12 GA-SP5
  • AArch64
  • s390x
  • x86-64
  • ghc-cryptohash
  • ghc-cryptohash-devel
0.11.9-2.3 info 5585 2016-09-14 12 GA-SP5
  • ppc64le
  • ghc-cryptohash
  • ghc-cryptohash-devel