dCode is free and its tools are a valuable help in games, puzzles and problems to solve every day! You have a problem, an idea for a project, a specific need and dCode can not (yet) help you? You need custom development? Contact-me!

Tool to decrypt/encrypt digits with Rot5. ROT-5 is an application of ROT-13 to the numbers, the shift of 5 makes the cipher reversible for numbers.

Answers to Questions

How to encrypt using Rot5?

Rot 5 encryption applies on the numbers in a message. It involves replacing a digit by another by adding 5 (modulo 10).

Example: 1234567890 6789012345

Example: 248 is crypted 793 by ROT-5

For letters, the corresponding symmetric cipher is Rot-13

How to decrypt Rot-5 cipher?

Decryption of Rot5 is identical to the encryption because Rot5 is reversible.

Example: 1234567890 6789012345

Example: 793 re-becomes 248

How to recognize ROT-5 ciphertext?

ROT-5 is used on the digits. Numbers that began with 1 now begin with 6 etc.

According to Benford's law, there should be more 6 than 4 in the ciphertext.

What are the variants of the Rot-5 cipher?

Rot-5 is already a variant of Rot13, itself a version of Caesar cipher with a shift of 13. Rot-5 is therefore a Caesar cipher with a shift of 5, but applied to the digits.

It is common to associate a ROT-13 for coding the letters and ROT-5 for the numbers at the same time.

What a shift of 5 for Rot5?

A shift of 5 allows the code to be reciproqual/reversible/symmetric, this means that 2 consecutive encryptions lead to find the plain number.

Ask a new question

Source code

dCode retains ownership of the source code of the script ROT-5 Cipher online. Except explicit open source licence (indicated Creative Commons / free), any algorithm, applet, snippet, software (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or any function (convert, solve, decrypt, encrypt, decipher, cipher, decode, code, translate) written in any informatic langauge (PHP, Java, C#, Python, Javascript, Matlab, etc.) which dCode owns rights will not be given for free. To download the online ROT-5 Cipher script for offline use on PC, iPhone or Android, ask for price quote on contact page !