Simple Substitution Cipher

Keyword
Remove Punctuation

Simple Substitution Cipher is a cipher that has been in use for many hundreds of years (an excellent history is given in Simon Singhs 'the Code Book'). It basically consists of substituting every plaintext character for a different ciphertext character. It differs from the Caesar Cipher in that the cipher alphabet is not simply the alphabet shifted, it is completely jumbled.

Simple Substitution Cipher offers very little communication security, and it will be shown that it can be easily broken even by hand, especially as the messages become longer (more than several hundred ciphertext characters).

How it works?

Here is a quick example of the encryption and decryption steps involved with the simple substitution cipher. The text we will encrypt is 'defend the east wall of the castle'.

Keys for the simple substitution cipher usually consist of 26 letters (compared to the caeser cipher's single number). An example key is:

plain alphabet : abcdefghijklmnopqrstuvwxyz
cipher alphabet: phqgiumeaylnofdxjkrcvstzwb

An example encryption using the above key:

plaintext : defend the east wall of the castle
ciphertext: giuifg cei iprc tpnn du cei qprcni

It is easy to see how each character in the plaintext is replaced with the corresponding letter in the cipher alphabet. Decryption is just as easy, by going from the cipher alphabet back to the plain alphabet. When generating keys it is popular to use a key word, e.g. 'zebra' to generate it, since it is much easier to remember a key word compared to a random jumble of 26 characters. Using the keyword 'zebra', the key would become:

cipher alphabet: zebracdfghijklmnopqstuvwxy

This key is then used identically to the example above. If your key word has repeated characters e.g. 'mammoth', be careful not to include the repeated characters in the cipher alphabet.

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
Hex Encode & Decode is a encode tool for free that can convert the text to hexadecimal bytes separated by the specified delimiter and also can convert hexadecimal byte string back into its raw value.

Hex Encode & Decode

Hex Encode & Decode is a encode tool for free that can convert the text to hexadecimal bytes separated by the specified delimiter and also can convert hexadecimal byte string back into its raw value.
GOST Block Cipher (Magma), defined in the standard GOST 28147-89 (RFC 5830), is a Soviet and Russian government standard symmetric key block cipher with a block size of 64 bits.

GOST Block Cipher

GOST Block Cipher (Magma), defined in the standard GOST 28147-89 (RFC 5830), is a Soviet and Russian government standard symmetric key block cipher with a block size of 64 bits.
SM4 is a 128-bit block cipher, currently established as a national standard (GB/T 32907-2016) of China. Multiple block cipher modes are supported. It complete implementation of SM4 cipher encryption/decryption with ECB, CBC, CFB, OFB, CTR block modes.

SM4 Cipher

SM4 is a 128-bit block cipher, currently established as a national standard (GB/T 32907-2016) of China. Multiple block cipher modes are supported. It complete implementation of SM4 cipher encryption/decryption with ECB, CBC, CFB, OFB, CTR block modes.
Random Password Generator can create random passwords of a specified length online. By setting whether the password includes lowercase letters (a-z), uppercase letters (A-Z), digits (0-9), and special characters, it can randomly generate passwords between 4 and 32 characters in length.

Random Password Generator

Random Password Generator can create random passwords of a specified length online. By setting whether the password includes lowercase letters (a-z), uppercase letters (A-Z), digits (0-9), and special characters, it can randomly generate passwords between 4 and 32 characters in length.