What is a cipher?

A cipher is a way of encrypting and decrypting messages by following a pattern of steps. They can range from being very simple to extremely complex and impossible to decode without the correct key. There are two different main types of classical ciphers: substitution ciphers and transposition ciphers.

Image example showing a caesar shift of 2

A substitution cipher swaps letters in a message for other letters. For example, the ROT13 Cipher has a key of 13 so each letter is swapped by the character that is 13 characters along the alphabet. A transposition cipher is where the letters stay the same, but the order of the letters are swapped according to some design. The simplest example of this would reversing the order of a message, so “send help” is turned into “pleh dnes”

There are many YouTube videos explaining ciphers and cryptography available online. The following videos are good starting points for learning cryptography


Background information

Cryptography, the use of codes and ciphers to protect secrets, began thousands of years ago. Until recent decades, it has been the story of what might be called classic cryptography — that is, of methods of encryption that use pen and paper, or perhaps simple mechanical aids. In the early 20th century, the invention of complex mechanical and electromechanical machines, such as the Enigma rotor machine, provided more sophisticated and efficient means of encryption; and the subsequent introduction of electronics and computing has allowed elaborate schemes of still greater complexity, most of which are entirely unsuited to pen and paper.

The use of codes and ciphers to obscure communication has been around for thousands of years with pen and paper using classical cryptography. By the time World War 2 came around, ciphers had advanced into electronic cipher machines. This was very useful for keeping sensitive information confidential and played a key role in both World War 1 and 2 for communication between allies. The Germans relied on communicating with an Enigma machine as it was so mathematically difficult to break the message keys. To add to the difficulty the Germans would switch cipher keys daily, meaning that even if by chance the cipher key was cracked it would be useless for any other day. When the Enigma code was finally cracked it is thought to have reduced the length of World War 2 by up to two years.
Modern algorithms typically involve the use of a public key and private key and are extremely secure. When the technological advancement that is supercomputers and quantum computing arrive, new encryption methods will have be deployed to ensure data is not prone to brute force attacks.

Select a cipher to find out more!


Caesar Cipher clickable thumbnail ROT13 Cipher clickable thumbnail Vigenere Cipher clickable thumbnail Morse Code clickable thumbnail