Cryptography
Computer Science & Statistics at University of Rhode Island
Affine Cipher History and Description Since a shift cipher can produce only 25 different distinct
transformations for the text, it is not a very secure encryption method. The
affine
cipher is a generalization of the shift cipher that provides a little bit more
security. The affine cipher applies multiplication and addition to each
character using the function:
Using the encryption function y = 11x + 4 MOD 26, letter E and S
will be encoded to W and U as shown in example below.
Since the computation involves modulo 26 arithmetic, several letters may
fail to be uniquely decoded if the multiplier has a common divisor with
26. Therefore, the greatest common divisor of a and m must be 1. Example Encipher
Thus, the numerical values corresponding to the
plaintext MONEY are 12, 14, 13, 4, and 24.
The corresponding letters are GCRWI,
which is the ciphertext.
The corresponding plaintext letters are MONEY. Analysis Since we know that each letter in plaintext is
enciphered in the function of y = (ax + b) MOD m, we can break the affine
cipher by solving two linear equations with two examples of x and y. Once
we obtain the values of a and b, we can decipher the entire
ciphertext. |