BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help
Not What You Meant?  There are 11 definitions for Affine.

Affine cipher

Print-Friendly
About 1 pages (353 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

The Affine cipher is a special case of the more general monoalphabetic substitution cipher. 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> Considering the specific case of encrypting messages in English (i.e. <math>m=26</math>), there are a total of 286 non-trivial affine ciphers, not counting the trivial Caesar ciphers obtained when <math>a=1</math>. This lack of variety renders the system as highly insecure when considered in light of Kerckhoffs' Principle. Even without foreknowledge that a text were enciphered with an affine cipher, the ciphertext would have all of the vulnerabilities of ordinary monoalphabetic substitution ciphers. 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 equation. 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

View More Summaries on Affine cipher
 
Ask any question on Affine cipher and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Affine cipher from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy