Crypto-4.1.0: DES, Blowfish, AES, TEA, SHA1, MD5, RSA, BubbleBabble, Hexdump, Support for Word128, Word192 and Word256 and Beyond, PKCS5 Padding, Various Encryption Modes e.g. Cipher Block Chaining all in one package.

Portabilitynon-portable
Stabilityexperimental
Maintainerdominic.steinitz@blueyonder.co.uk

Codec.Encryption.Blowfish

Contents

Description

Takes the Blowfish module supplied by Doug Hoyte and wraps it so it can used with the standard modes.

Synopsis

Function Types

encrypt :: Integral a => a -> Word64 -> Word64Source

Basic Blowfish encryption which takes a key and a block of plaintext and returns the encrypted block of ciphertext according to the standard. Typical keys are Word8, Word16, Word32, Word64, Word128. See http://www.counterpane.com/vectors.txt.

decrypt :: Integral a => a -> Word64 -> Word64Source

Basic Blowfish decryption which takes a key and a block of ciphertext and returns the decrypted block of plaintext.