This package is part of ZHaskell project, providing comprehensive crypto primitives based on botan, still under heavy development.
- Random number generators.
- Block Cipher and symmetric cipher.
- Hash.
- MAC.
- Key derivation functions.
- Password hash.
- Constant time multiple precision integers.
- Public key creation, import and export.
- Public key encryption/decryption
- Diffie-Hellman key exchange.
- Signature generation & signature verification.
- X.509 certificates & X.509 certificate revocation lists.
- One time password.
-
A working haskell compiler system, GHC(>=8.6), cabal-install(>=2.4), hsc2hs.
-
A working python interpreter in
$PATH
. -
Tests need hspec-discover.
> import Z.Crypto
>
# get code
git clone --recursive git@github.com:ZHaskell/z-botan.git
cd z-botan
# build
cabal build
# test
cabal test --test-show-details=direct
# install
cabal install
# generate document
cabal haddock