Hongmu Notes

Caesar cipher

The Caesar Cipher online tool puts encryption and decryption, exhaustiveness and frequency analysis on the same page.
100% Browser local processing 0 Data upload

🔐 Displacement encryption and decryption

💡 Instructions for use

  • Encryption and decryption are a pair of opposite operations: encryption moves the letters backward, and decryption moves them forward; use "encryption" on the ciphertext and then move it back to the same value to restore it.
  • If you are not sure about the displacement, select "Exhaustive". The result area will list all the results in order from displacement 0 to 25. You can manually select the readable one.
  • When the text is long, you can first do "letter frequency analysis": the English letter e usually appears the most, and the displacement can be calculated based on this.
  • Non-English letters will remain unchanged, numbers, spaces, punctuation and Chinese characters will not be changed, and capitalization and capitalization will remain as they are.

The Caesar Cipher online tool puts encryption and decryption, exhaustiveness and frequency analysis on the same page.

How to choose among the four operations

Encryption: the displacement is known, and the plaintext is converted into ciphertext; decryption: the displacement is known, and the ciphertext is restored.

Exhaustive enumeration: list all twenty-six results when the displacement is unknown; frequency analysis: use the frequency of occurrence of letters to estimate the displacement.

Processing rules

Only English letters are processed: uppercase and lowercase letters are shifted within the table, and numbers, punctuation, spaces, and line breaks are all retained as they are.

Chinese will not be processed (Caesar cipher only targets the Latin alphabet), and no error will be reported when pasting Chinese text, it will just remain as is.

Interpretation of results

The length of the encryption and decryption results is consistent with the original text; if the length changes, it means it was truncated or the tool was changed.

The exhaustive search results will list twenty-six candidates. Scan them line by line, and the line that can be read clearly is the plain text.

Usage scenarios

Teaching demonstrations, password puzzle solving, CTF introductory exercises, and understanding the basic idea of "replacement password".

Its value lies in "understanding and calculating quickly" rather than providing any actual security protection.

limitations

There are only twenty-five key spaces (zero displacement equals no encryption), and modern computers can exhaust them in an instant.

Therefore it can only be used for games and teaching, and can never be used to protect real information.

The Caesar cipher only processes English letters; Chinese characters, numbers, and punctuation are all retained as they are.

📖 Glossary

Caesar cipher
It is said that the substitution cipher used by Caesar is a translation of each letter on the alphabet by a fixed value. It is an entry-level classical cipher.
Displacement
Number of digits to shift letters, from 0 to 25; a shift of 3 means a becomes d, b becomes e, and so on.
Plain text and cipher text
The plaintext is the readable text to be encrypted, and the ciphertext is the result of encryption; the ciphertext and plaintext of the Caesar cipher are exactly the same length.
ROT13
Special case with a displacement of 13. Since the length of the alphabet is 26, the shift of 13 returns twice to the original position, so the encryption and decryption operations use the same set of rules.
key space
The total number of possible keys. The Caesar cipher has only 25 effective displacements and a very small space, so it is extremely easy to be broken.
Exhaustive cracking
Try all possible displacements one by one and output the results, and manually select the readable one, also called brute force cracking.
frequency analysis
A method of cracking passwords using the statistical rules of the frequency of English letters: e is usually the highest frequency, and the displacement can be inferred based on this.
Single table replacement
An encryption method in which each letter is fixedly mapped to another letter. The Caesar cipher is the simplest single-table substitution.
alphabet wrap
The rule of returning to a when the displacement crosses z is implemented using a modulo operation to ensure that the result always falls within 26 letters.
Case preservation
The case of letters is not changed during encryption; this tool outputs non-English characters as they are.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

There are several operations?
There are four types: encryption, decryption, exhaustiveness, and frequency analysis.
Will Chinese be encrypted??
No. Only English letters are processed, leaving the rest of the characters as they are.