| License | BSD-style |
|---|---|
| Maintainer | Vincent Hanquez <vincent@snarc.org> |
| Stability | stable |
| Portability | Good |
| Safe Haskell | None |
| Language | Haskell2010 |
Crypto.Cipher.RC4
Description
Simple implementation of the RC4 stream cipher. http://en.wikipedia.org/wiki/RC4
Initial FFI implementation by Peter White peter@janrain.com
Reorganized and simplified to have an opaque context.
Documentation
Arguments
| :: ByteArrayAccess key | |
| => key | The key |
| -> State | The RC4 context with the key mixed in |
RC4 context initialization.
seed the context with an initial key. the key size need to be adequate otherwise security takes a hit.
RC4 xor combination of the rc4 stream with an input