ToolWren logo ToolWren
ToolWrenGuides › Classic Ciphers Explained: Caesar, ROT13, Atbash and Vigenère

Classic Ciphers Explained: Caesar, ROT13, Atbash and Vigenère

Ciphers · Security · Updated 14 August 2026

Long before computers, people hid messages with pen-and-paper ciphers. They are a wonderful way to learn how encryption thinks — and they are genuinely fun. This guide walks through the four most famous classic ciphers, how each works, and the one thing they all have in common: none of them is secure by modern standards.

The Caesar cipher

Named after Julius Caesar, who reportedly used it, the Caesar cipher shifts every letter a fixed number of places down the alphabet. With a shift of 3, A becomes D, B becomes E, and so on; Z wraps around to C. Decrypting is just shifting back. It is the simplest substitution cipher and the perfect place to start — try encoding your name with different shifts and watch the pattern.

ROT13: Caesar's most famous special case

ROT13 is simply a Caesar cipher with a shift of 13. Because the English alphabet has 26 letters, applying ROT13 twice returns the original text — encoding and decoding are the exact same operation. It was never meant for secrecy; it is used online to hide spoilers, punchlines and puzzle answers so you only read them if you deliberately decode them.

The Atbash cipher

Atbash is an ancient Hebrew cipher that mirrors the alphabet: A becomes Z, B becomes Y, C becomes X, and so on. Like ROT13, it is its own inverse — running Atbash twice gives back the original. It is one of the oldest known ciphers, appearing in biblical texts.

Vigenère: a real step up

The Vigenère cipher uses a keyword to vary the shift from letter to letter, so the same letter can encrypt differently each time it appears. For centuries it was considered unbreakable and earned the nickname le chiffre indéchiffrable ("the indecipherable cipher"), until frequency-based attacks eventually cracked it. It is dramatically stronger than Caesar, but still trivial for a computer to break today.

Why none of these are secure

Every cipher here is a substitution cipher with a tiny key space and predictable patterns. A Caesar cipher has only 25 possible shifts — a computer tries them all instantly. Even Vigenère falls to statistical analysis. Use these for learning, puzzles, spoiler-hiding and fun, never to protect anything sensitive. For real security you need modern encryption such as AES. Every cipher tool here runs entirely in your browser, so nothing you type is ever uploaded.

More guides