The Affine cipher reference article from the English Wikipedia on 24-Jul-2004
(provided by Fixed Reference: snapshots of Wikipedia from wikipedia.org)

Affine cipher

People like you are child sponsors
The Affine cipher is a special case of the more general substitution cipher. It is monoalphabetic and symmetric.

In affine ciphers the encryption function for a letter is where,

The decryption function is where is the multiplicative inverse of in the group

This cipher is less secure than a substitution cipher as it is vulnerable to all of the attacks that work against substitution ciphers as well as other attacks. The cipher's primary weakness comes from the fact that if the cryptanalyst can discover (by means of frequency analysis, brute force, guessing or otherwise) the plaintext of two ciphertext characters then the key can be obtained by solving a simultaneous equations. Since we know and are relatively prime this can be used to rapidly discard many "false" keys in an automated system.

See also: topics in cryptography, affine functions.


Classical cryptography
Ciphers: ADFGVX | Affine | Atbash | Autokey | Bifid | Book | Caesar | Permutation | Playfair | Polyalphabetic | Running key | Substitution | Transposition | Vigenère
Cryptanalysis: Frequency analysis | Index of coincidence   Misc: Cryptogram | Polybius square | Scytale | Straddling checkerboard | Tabula recta