| Copyright | (c) Colin Woodbury, 2015 |
|---|---|
| License | BSD3 |
| Maintainer | Colin Woodbury <colingw@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Classical.Cipher.Stream
Description
Documentation
A Cipher with pseudorandom keys as long as the plaintext. Since Haskell is lazy, our keys here are actually of infinite length.
If for whatever reason a key of finite length is given to encrypt,
the ciphertext is cutoff to match the key length. Example:
>>>encrypt [1,2,3] "ABCDEF" ^. stream"BDF"