cryptohash: collection of crypto hashes, fast, pure and practical
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
[Skip to Readme]
Downloads
- cryptohash-0.11.9.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.4, 0.4.1, 0.5, 0.5.1, 0.5.2, 0.5.3, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.7.0, 0.7.1, 0.7.2, 0.7.3, 0.7.4, 0.7.5, 0.7.6, 0.7.7, 0.7.8, 0.7.9, 0.7.10, 0.8.0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.11.6, 0.11.7, 0.11.8, 0.11.9 |
---|---|
Dependencies | base (>=4 && <6), byteable, bytestring, cryptonite (>=0.13), ghc-prim, memory [details] |
License | BSD-3-Clause |
Copyright | Vincent Hanquez <vincent@snarc.org> |
Author | Vincent Hanquez <vincent@snarc.org> |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Category | Data, Cryptography |
Home page | http://github.com/vincenthz/hs-cryptohash |
Source repo | head: git clone git://github.com/vincenthz/hs-cryptohash |
Uploaded | by VincentHanquez at 2016-03-25T17:25:05Z |
Distributions | Arch:0.11.9, Debian:0.11.9, Fedora:0.11.9, FreeBSD:0.11.6, LTSHaskell:0.11.9, NixOS:0.11.9, Stackage:0.11.9 |
Reverse Dependencies | 157 direct, 3451 indirect [details] |
Downloads | 187571 total (162 in the last 30 days) |
Rating | 1.25 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2016-03-25 [all 1 reports] |