Rot Encryption and Decryption - Supports Rot5, Rot13, Rot18, and Rot47
Plaintext
Ciphertext
What is Rot Encryption?
Rot encryption is a straightforward character substitution technique where letters are rotated by a fixed number of positions, based on the Caesar cipher principle. The Rot encryption series includes Rot5, Rot13, Rot18, and Rot47, each applying different rotation steps to characters for encryption and decryption:
- Rot5: Rotates numeric characters (0-9) by 5 positions.
- Rot13: Rotates alphabetic characters (A-Z, a-z) by 13 positions, commonly used for basic obfuscation.
- Rot18: Combines Rot5 and Rot13, rotating numbers by 5 positions and letters by 13 positions.
- Rot47: Applies a 47-position rotation to all printable ASCII characters (letters, numbers, and symbols), making it suitable for a broader character set.
These methods are mainly used for simple encryption and decryption tasks, with applications in information protection and steganography.
How Does Rot Encryption and Decryption Work?
Rot5
- Encryption: Each numeric character (0-9) in the input is increased by 5. For example, "0" becomes "5", and "9" becomes "4".
- Decryption: The reverse operation is applied, subtracting 5 from each number. For example, "5" becomes "0", and "4" becomes "9".
Rot13
- Encryption: Each letter (A-Z, a-z) in the input is rotated by 13 positions. For example, "A" becomes "N", and "Z" becomes "M".
- Decryption: The same operation is applied again, rotating each letter by 13 positions, effectively "wrapping around" to return to the original letter.
Rot18
- Encryption: This combines Rot5 and Rot13. Numeric characters are rotated by 5 positions, and alphabetic characters by 13 positions. For example, "1" becomes "6", and "A" becomes "N".
- Decryption: The same rotation rules are used to restore the ciphertext to plaintext.
Rot47
- Encryption: Rotates all printable ASCII characters (from ASCII 33 to 126) by 47 positions, replacing each character with one that is 47 positions ahead in the ASCII table.
- Decryption: The same 47-position rotation is applied to decrypt the characters back to their original form.
How to Use the Rot Encryption and Decryption Tool
Using the Rot encryption and decryption tool is very simple. Here are the steps to guide you through the process:
- Select the Encryption Method: In the tool interface, you will see four radio buttons: Rot5, Rot13, Rot18, and Rot47. Choose the encryption method you wish to use.
- Enter Plaintext or Ciphertext: If you want to encrypt text, enter the text you want to encrypt in the "Plaintext Input" box. The system will automatically convert the text into ciphertext based on the selected encryption method, displaying the result in the "Ciphertext Input" box. To decrypt, simply enter the ciphertext in the "Ciphertext Input" box. The system will automatically decrypt it.
- Set the Handling of Unrecognized Characters: During the process, you can choose whether to retain unrecognized characters (such as spaces, punctuation, etc.). If you disable "Ignore Unknown Characters", the system will encrypt or decrypt letters and numbers while leaving other characters (like spaces and punctuation) unchanged. If you enable this option, the system may ignore non-alphabetic and non-numeric characters.
Example
Suppose you selected Rot13 encryption and entered the following plaintext: Hello, World! 123
Encryption Process:

- H -> U
- e -> r
- l -> y
- l -> y
- o -> b
- , (comma) -> Retained
- W -> J
- o -> b
- r -> e
- l -> y
- d -> q
- ! (exclamation mark) -> Retained
- 1 -> Retained
- 2 -> Retained
- 3 -> Retained
Encrypted Result: Uryyb, Jbeyq! 123.
If "Ignore Unknown Characters" is enabled, the ciphertext will be:UryybJbeyq.