Module cipher_crypt::affine

source ·
Expand description

The Affine cipher is a special case of the more general monoalphabetic substitution cipher.

The cipher is less secure than a substitution cipher as it is vulnerable to all of the attacks that work against substitution ciphers, in addition to other attacks. The cipher’s primary weakness comes from the fact that if the cryptanalyst can discover the plaintext of two ciphertext characters, then the key can be obtained by solving a simultaneous equation

Structs

An Affine cipher.