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
- Enter the text to encrypt or decrypt
- Select Encrypt or Decrypt mode
- Choose key 'a' (coprime with 26) and key 'b' (0-25)
- Click the button and copy the result
Related Tools
Word Counter
Count words, sentences, paragraphs, and characters in any text.
Character Counter
Count characters with and without spaces and track character limits.
Case Converter
Convert text between uppercase, lowercase, title case, and sentence case.
Lorem Ipsum Generator
Generate placeholder Lorem Ipsum text with 1 to 50 paragraphs.