| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sun, 18 Jan 2026 00:31:03 GMT
X-Served-By: cache-dfw-ktki8620055-DFW, cache-bom-vanm7210065-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768696263.694056,VS0,VE311
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
Z-Botan: Crypto for Haskell
Z-Botan: Crypto for Haskell
Modules
[Index] [Quick Jump]
Downloads
- Z-Botan-0.4.0.0.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.1.1.0, 0.1.1.1, 0.1.1.2, 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.4.0.0 (info) |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.12 && <5.0), ghc-prim (>=0.5.3), integer-gmp (>=1 && <2), primitive (>=0.7 && <0.8), scientific (>=0.3 && <0.4), stm (>=2.5 && <2.6), time (>=1.11 && <1.12), Z-Data (>=0.8.5 && <0.9), Z-IO (>=0.8 && <0.9) [details] |
| License | BSD-3-Clause |
| Copyright | (c) Z.Haskell Contributors, 2017-2020 |
| Author | Z.Haskell Contributors |
| Maintainer | winterland1989@gmail.com |
| Uploaded | by winterland at 2021-06-04T11:45:36Z |
| Category | Data |
| Home page | https://github.com/ZHaskell/z-botan |
| Bug tracker | https://github.com/ZHaskell/z-botan/issues |
| Source repo | head: git clone git://github.com/haskell-Z/z-botan.git |
| Distributions | |
| Downloads | 1428 total (41 in the last 30 days) |
| Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs available [build log] All reported builds failed as of 2021-06-04 [all 1 reports] |
Readme for Z-Botan-0.4.0.0
[back to package description]Z-Botan
This package is part of ZHaskell project, providing comprehensive crypto primitives based on botan.
- Random number generators.
- Block Cipher and symmetric cipher.
- Hash.
- MAC.
- Key derivation functions.
- Password hash.
- 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.
- AES Key Wrapping
- Format Preserving Encryption.
Requirements
-
A working haskell compiler system, GHC(>=8.6), cabal-install(>=3.2.1), hsc2hs.
-
A working python interpreter in
$PATH. -
Tests need hspec-discover.
Example usage
> :set -XOverloadedLists
> :m + Z.Crypto.Hash
>
> hash SHA256 "hello, world"
09CA7E4EAA6E8AE9C7D261167129184883644D07DFBA7CBFBC4C8A2E08360D5B
>
> :m + Z.Crypto.RNG Z.Crypto.PwdHash
> genBcrypt "mypass" rng 8
[36,50,97,36,48,56,36,102,82,102,78,76,71,122,106,78,80,99,100,68,69,77,75,70,81,104,76,97,117,110,86,52,88,53,89,47,88,101,81,117,80,111,111,111,65,109,122,48,97,50,66,55,79,104,56,104,54,66,121,109]
> validBcrypt "mypass" [36,50,97,36,48,56,36,102,82,102,78,76,71,122,106,78,80,99,100,68,69,77,75,70,81,104,76,97,117,110,86,52,88,53,89,47,88,101,81,117,80,111,111,111,65,109,122,48,97,50,66,55,79,104,56,104,54,66,121,109]
True
Dev guide
# get code
git clone --recursive git@github.com:ZHaskell/z-botan.git
cd z-botan
# build
cabal build
# test
cabal test --enable-tests --test-show-details=direct
# install
cabal install
# generate document
cabal haddock