Affine_cipher Affine_cipher

Affine cipher - Definition and Overview

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 <math>e(x)=ax+b\pmod{m}<math> where,

  • <math>a<math> and <math>m<math> are coprime (otherwise <math>a<math> would have no multiplicative inverse modulo <math>m<math>).
  • <math>m<math> is the size of the alphabet.

The decryption function is <math>d(x)=a^{-1}(x-b)\pmod{m}<math> where <math>a^{-1}<math> is the multiplicative inverse of <math>a<math> in the group <math>\mathbb{Z}_{m}<math>

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 <math>a<math> and <math>m<math> 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 edit  (http://www.wordiq.com/definition/Template:Classical_cryptography)
Ciphers: ADFGVX | Affine | Atbash | Autokey | Bifid | Book | Caesar | Hill | Permutation | Playfair | Polyalphabetic | Running key | Substitution | Transposition | Trifid | Vigenère

Cryptanalysis: Frequency analysis | Index of coincidence &nbsp Misc: Cryptogram | Polybius square | Scytale | Straddling checkerboard | Tabula recta

Example Usage of Affine

genalxy: I want to get clarins lift Affine visage lor, seriously got a fat face. Zzz
emmabryden: v tired today....way to much Affine last night.
MrGadgetFreak: Noch schnell ein Weihnachtsgeschenk für Internet-Affine und Social Media Freaks gesucht? Wie wäre es mit nem Kissen http://bit.ly/7MGTuQ
Copyright 2009 WordIQ.com - Privacy Policy  :: Terms of Use  :: Contact Us  :: About Us
This article is licensed under the GNU Free Documentation License. It uses material from the this Wikipedia article.