crypto-classical-0.2.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.Affine

Description

 

Synopsis

Documentation

newtype Affine a Source

An Affine Cipher is a non-random Substitution Cipher, such that a character x is mapped to a cipher character according to the equation:

f(x) = ax + b (mod 26)

Also known as a Linear Cipher.

Constructors

Affine 

Fields

_affine :: a
 

affine :: forall a a. Lens (Affine a) (Affine a) a a Source