|
|
|
|
|
Affine CipherThe 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, - and are coprime (otherwise would have no multiplicative inverse modulo ).
- is the size of the alphabet.
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 equation. 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.
|
 |
|
| Copyright 2005-2009 OnPedia.com. All Rights Reserved |
|
|