Skip to content

Cryptography Basics and History

Start with one simple cipher, learn the words people use to describe it, then see how the idea changed over two thousand years.

Start here

History

The cipher today

Try it yourself

advertisement

Four words to know

Cryptography means “secret writing”, from two Greek words. It studies how to turn a message into something only the right people can read, and four terms come up all the time.

The plaintext is the readable message and the ciphertext is its scrambled version. The cipher is the method that turns one into the other, and the key is the secret setting the method needs. In the Caesar cipher, the method is “move each letter along the alphabet” and the key is how far to move it.

A good order to read in

Begin with the guide, where you can step through a shift before any theory, then make a few messages on the wheel. After that, the article on substitution ciphers explains why a shuffled alphabet is harder to break, and the history gives you the backstory. When you want to see these ciphers fall, go to cryptanalysis.

Classical and modern cryptography

Everything on this site is classical cryptography: ciphers that work on letters and can be done by hand. They are good for learning and useless for real secrets, because a computer breaks them almost at once.

Banks, messaging apps and websites rely on modern algorithms such as AES and RSA, which work on numbers and are designed to resist computers. Plaintext, ciphertext and key mean the same thing there, so the vocabulary you pick up here carries over.

Other sections

Cipher Tools

Encrypt, decrypt and crack text in your browser.

Cryptanalysis

How to read a message without the key.

Programming

Tutorials in five languages, an API and a library.