Encrypt and decrypt text using Caesar cipher, ROT13, Atbash, and Vigenère cipher. Includes adjustable shift, custom keyword, and instant swap.
Four ciphers here, and 2 of them are the same cipher wearing different clothes. ROT13 is Caesar with the shift nailed to 13, which is exactly half of 26 and therefore its own inverse. Atbash maps A to Z and B to Y, which is also its own inverse. Text Encrypt hides the encode and decode toggle for both of those and labels the pane Output (self-inverse), because offering a decode button for an operation that is identical to encoding is just a way to confuse people.
Caesar keeps a slider from 1 to 25, marked at 13 so the ROT13 equivalence is visible. Vigenère takes a keyword, forced to letters and uppercased as you type, and shifts each letter of your text by the alphabet position of the next keyword letter. Non-letters never consume a keyword letter, so punctuation and spacing do not knock the key out of step.
Every cipher leaves digits, punctuation and whitespace untouched, which keeps the shape of the message intact and is also the reason these are breakable. A card at the foot describes the selected cipher and restates the current shift or keyword. All of it runs in the page.
Attack at dawn becomes Dwwdfn dw gdzq. Decoding subtracts the same amount, so shift 3 and shift 23 are the same key in opposite directions.Meet me at the old bridge becomes Nvvg nv zg gsv low yirwtv. Notice that old becomes low, an ordinary word, which is the sort of coincidence that makes Atbash fun and useless.SECRET, Attack at dawn becomes Sxvrgd sx frag, and the repeated a in attack encrypts to two different letters, which is the whole reason it resisted analysis for 300 years.These are classical ciphers for learning/fun — not secure for real-world data protection.Caesar Cipher
Shift each letter by N positions. Current shift: 13. Effective ROT-13.
⚠ These are classical ciphers for learning/fun — not secure for real-world data protection.