affine cipher Algorithm

The affine is a type of monoalphabetic substitution cipher, where each letter in an alphabet is mapped to its numeral equivalent, coded use a simple mathematical function, and converted back to a letter. The formula used means that each letter ciphers to one other letter, and back again, meaning the cipher is essentially a standard substitution cipher with a rule governing which letter goes to which.

affine cipher source code, pseudocode and analysis