Affine Cipher

Encrypt and decrypt text using the Affine cipher with formula E(x) = (ax + b) mod 26. Choose keys 'a' (coprime with 26) and 'b' for encryption and decryption.

How to Use Affine Cipher

Enter text, select encrypt or decrypt mode, choose key 'a' (must be coprime with 26) and key 'b' (0-25). Click Encrypt or Decrypt to apply the Affine cipher formula E(x) = (ax + b) mod 26.

Step-by-Step Instructions

  1. Enter the text to encrypt or decrypt
  2. Select Encrypt or Decrypt mode
  3. Choose key 'a' (coprime with 26) and key 'b' (0-25)
  4. Click the button and copy the result

Related Tools

More Free Tools