Home

Awesome

haskell-crypto-simple

A simple high level encryption interface based on cryptonite

Usage

> import Crypto.Simple.CBC (encrypt, decrypt) 
> import Data.ByteString.Char8 (pack)
> let key = pack "my secret key"
> let msg = pack "this is a message"
> encrypt key msg >>= \secretMsg -> decrypt key secretMsg
"this is a message"

Implementation

The implementation is based on some good defaults