crypto-classical-0.1.0: An educational tool for studying classical cryptography schemes.

Copyright(c) Colin Woodbury, 2015
LicenseBSD3
MaintainerColin Woodbury <colingw@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Crypto.Classical.Cipher.Vigenere

Description

 

Synopsis

Documentation

newtype Vigenère a Source

A Vigenère Cipher is just a Stream Cipher with a finite key, shorter than the length of the plaintext. The key is repeated for the entire length of the plaintext.

Constructors

Vigenère 

Fields

_vigenère :: a
 

vigenère :: forall a a. Iso (Vigenère a) (Vigenère a) a a Source

vigKey :: ByteString -> [ / 26] -> [ / 26] Source

Determine a Vigenère key from a Stream key. Weakness here: key length is a factor of the plaintext length.