Why this tool is useful
Use the Affine Cipher Tool for classroom examples that need a keyed substitution with an explicitly invertible multiplier.
Encode or decode Latin letters with validated affine multiplier and offset keys using arithmetic modulo 26.
Ready. Your working data stays in this browser.
Use the Affine Cipher Tool for classroom examples that need a keyed substitution with an explicitly invertible multiplier.
The encoder calculates (a·x+b) mod 26; decoding finds the modular inverse of a, and rejects multipliers that are not coprime with 26.
With multiplier 5 and offset 8, AFFINE CIPHER encodes as IHHWVC SWFRCP and decodes back without changing the space.
The calculation is deterministic and explains validation errors instead of silently changing invalid input.
Input and output remain in this tab. Copy and download happen through browser APIs without a server upload.
Every run reports its tool mode, timestamp and input/output size so transformed data can be audited.