The Affine Cipher is a classic monoalphabetic substitution cipher that encrypts each letter of the plaintext by applying a simple mathematical function—a linear transformation in modular arithmetic—to its numerical position in the alphabet. It's essentially a more general version of the basic shift cipher (like the Caesar cipher), but with both multiplication and addition.