Search for a tool
ROT-13 Cipher

Tool to decrypt/encrypt with rot13. ROT-13 cipher is a particular case of the Caesar cipher, where the shift is equal to 13, this allow the cipher to be reciprocal.

Results

ROT-13 Cipher -

Tag(s) : Substitution Cipher

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Feedback and suggestions are welcome so that dCode offers the best 'ROT-13 Cipher' tool for free! Thank you!

ROT-13 Cipher

ROT13 Decoder

 


ROT13 Encoder

 


Answers to Questions (FAQ)

What is Rot-13? (Definition)

Rot-13 (short for Rotation 13) is the name given to a mono-alphabetical substitution cipher which has the property of being reversible and very simple.

Combining the French/Latin alphabet of 26 letters and an offset of 13, Rot-13 replaces a letter with another located thirteen places further down the alphabet.

Rot-13 coding is popular to hide content because it is easily reversible, indeed, if it is applied twice, then the original message reappears.

This is a special case of the Caesar cipher (and more generally shift ciphers).

How to encrypt using Rot-13?

From an alphabet, usually the classic 26-letter alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ, each letter is shifted by 13 positions in the English alphabet. The correspondence table is:

ABCDEFGHIJKLMNOPQRSTUVWXYZ
NOPQRSTUVWXYZABCDEFGHIJKLM

Example: DCODE is encrypted QPBQR with ROT-13

Letters beyond Z return to the beginning of the alphabet (as if the alphabet were rotating on itself).

How to decrypt a Rot-13 cipher?

Rot-13 decryption is identical to encryption, due to the reciprocal substituting alphabet used:

NOPQRSTUVWXYZABCDEFGHIJKLM
ABCDEFGHIJKLMNOPQRSTUVWXYZ

Example: URYYB becomes HELLO.

NB: Rot-13 has the same function for encryption and decryption, it is said to be involutive. In other words, applying the ROT-13 Cipher twice on a text will return it to its original state.

How to recognize ROT-13 ciphertext?

Frequency analysis shows a shift of 13 letters (The E is replaced by an R, which should be the most present letter).

A message encoded by Rot13 has an index of coincidence similar to the language of the plain text.

The ROT13 code has been widely popularized on Usenet groups and discussion forums, for example as an anti-spoil method.

What are the variants of the Rot-13 cipher?

Rot-13 is in fact a Caesar cipher with a shift of thirteen. As this code only works with letters, it is possible to add the Rot5 to it for the digits (in this case it is sometimes called ROT13.5) or even to use the Rot47 to manage all the ASCII characters.

What is the particularity of the ROT13 Cipher?

An offset of 13 allows the encryption to be reversible. The encryption and decryption method are identical. Applying 2 consecutive encryptions (2 shifts of 13) heads to find the original text.

Why does 2 encryption with ROT13 cancel each other?

Applying 2 shifts of 13 represents a shift of 26, and for the Latin alphabet of 26 letters, this amounts to shifting all the letters to their starting point, so in the end, not undergoing any transformation.

ROT13(ROT13(letter)) = letter

Source code

dCode retains ownership of the "ROT-13 Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "ROT-13 Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "ROT-13 Cipher" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, or API access for "ROT-13 Cipher" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

Cite dCode

The copy-paste of the page "ROT-13 Cipher" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
ROT-13 Cipher on dCode.fr [online website], retrieved on 2024-11-21, https://www.dcode.fr/rot-13-cipher

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'ROT-13 Cipher' tool for free! Thank you!


https://www.dcode.fr/rot-13-cipher
© 2024 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
 
Feedback