@hackage cropty0.3.1.0
Encryption and decryption
Categories
License
MIT
Maintainer
sgschlesinger@gmail.com
Links
Versions
Installation
Dependencies (4)
- base >=4.12 && <5
- binary >=0.8
- bytestring >=0.10 && <1
- cryptonite >=0.27 Show all…
Dependents (1)
@hackage/trust-chain
Cropty
A little library for doing encryption using a combination of RSA and AEP, using the cryptonite library for cryptography.
ghci> privateKey <- generatePrivateKey KeySize256
ghci> encrypt (privateToPublic privateKey) "Hello" >>= decrypt privateKey
"Hello"