Affine Cipher
Encrypt or decrypt text with the affine substitution cipher.
Note: The affine cipher uses E(x) = (a·x + b) mod 26. The multiplier "a" must be coprime with 26 (choose from 1, 3, 5, 7, 9, 11, 15, 17, 19, 21, 23, 25) or an error is shown.
What Is a Affine Cipher?
The Affine Cipher tool encrypts and decrypts text with the formula E(x) = (a·x + b) mod 26, a combination of a multiplication and a shift. The multiplier 'a' must be coprime with 26 so that decryption is possible.
How to Use This Affine Cipher
- 1Enter a and bProvide the multiplier and shift values.
- 2Enter TextType the plaintext or ciphertext.
- 3Choose DirectionClick Encrypt or Decrypt to transform the text.
Frequently Asked Questions
Related Cryptography Tools
MD5 Generator
Free online MD5 hash generator.
SHA-1 Generator
Free online SHA-1 hash generator.
SHA-256 Generator
Free online SHA-256 hash generator.
SHA-512 Generator
Free online SHA-512 hash generator.
SHA-224 Generator
Free online SHA-224 hash generator.
SHA-384 Generator
Free online SHA-384 hash generator.
More Cryptography Tools
SHA-3 Generator
Free online SHA-3 (Keccak) hash generator.
SHA-256 File Hash
Compute the SHA-256 checksum of any file.
SHA-512 File Hash
Compute the SHA-512 checksum of any file.
RIPEMD-160 Generator
Free online RIPEMD-160 hash generator.
BLAKE2 Generator
Free online BLAKE2b and BLAKE2s hash generator.
BLAKE3 Generator
Free online BLAKE3 hash generator.

