Search for a tool
ROT Cipher

Tool to decrypt/encrypt by ROT. The code ROT for Rotation (which most common variant is Caesar Cipher) is the easiest shift-based encryption cipher.

Results

ROT 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 Cipher' tool for free! Thank you!

ROT Cipher

ROT Cipher Decoder

 

Automatic Decryption (Brute-force)


Custom Decryption









ROT-n Encoder

 









Answers to Questions (FAQ)

What is Rot cipher? (Definition)

The ROT cipher (or Rot-N), short for Rotation, is a type of shift/rotation substitution encryption which consists of replacing each letter of a message with another (always the same) located a little further (exactly N letters further) in the alphabet.

It is a basic cryptography method, often used for learning purposes. This is the basis of the famous Caesar cipher and its many variants modifying the shift.

The most popular variant is the ROT13 which has the advantage of being reversible with our 26 letters alphabet (the encryption or decryption operations are identical because 13 is half of 26).

How to encrypt using Rot cipher?

To encode a message with the ROT cipher, the user chooses a number, usually between 1 and 25 (because there are 26 positions in the alphabet), which represents the offset.

Then, each letter in the message is moved that number of positions to the right in the alphabet. If the offset exceeds the letter Z, it starts at the beginning of the (circular) alphabet.

Spaces, numbers, and non-alphabetic characters generally remain unchanged (accents are removed).

Plain AlphabetABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher Alphabet
Shift/Rotation of 1
BCDEFGHIJKLMNOPQRSTUVWXYZA
Cipher Alphabet
Shift/Rotation of 2
CDEFGHIJKLMNOPQRSTUVWXYZAB
Cipher Alphabet
Shift/Rotation of 13
NOPQRSTUVWXYZABCDEFGHIJKLM

Example: The message ROTATION coded on the alphabet ABCDEFGHIJKLMNOPQRSTUVWXYZ with an offset of N=13, gives the encrypted message EBGNGVBA.

How to decrypt with Rot cipher?

Deciphering Rot is very similar (or sometimes identical) to encryption, with a shift of the alphabet in the other direction.

The classic ROT cipher is extremely vulnerable to brute force attacks, as there are only 25 possible combinations to test.

From a message and an alphabet (or a supposed alphabet), it is possible to test all rotations by bruteforce (as many tests as there are characters in the alphabet) in order to find the plain message.

What are rot variants?

A variant of Rot consists of modifying the alphabet used, which may be different from the 26 characters (A to Z).

The best known are ROT13 and ROT47 but any offset and any alphabet can be considered:

ShiftNameRemarks
1Rot1/Rot-1Minimal shift of 1 letter
2Rot2/Rot-2
3Rot3/Rot-3Caesar Cipher (default usual shift)
4Rot4/Rot-4
5Rot5/Rot-5Reversible for the 10 digits
6Rot6/Rot-6
7Rot7/Rot-7
8Rot8/Rot-8
9Rot9/Rot-9
10Rot10/Rot-10
11Rot11/Rot-11
12Rot12/Rot-12
13Rot13/Rot-13Reversible for our 26-letter alphabet
14Rot14/Rot-14
15Rot15/Rot-15
16Rot16/Rot-16Reversible for base32 encoding
17Rot17/Rot-17
18Rot18/Rot-18Reversible for an alphanumeric alphabet of 36 characters (26 letters + 10 digits)
19Rot19/Rot-19
20Rot20/Rot-20
21Rot21/Rot-21
22Rot22/Rot-22
23Rot23/Rot-23
24Rot24/Rot-24
25Rot25/Rot-25Reverse 1 letter shift
26Rot26/Rot-26Identity transformation (no change) for our 26-letter alphabet
31Rot31/Rot-31Reversible for an case-sensitive alphanumeric 62-chars alphabet (26 uppercase + 26 lowercase + 10 digits)
32Rot32/Rot-32Reversible for base64 encoding
47Rot47/Rot-47Reversible for the 94 ASCII printable characters

Why is the ROT cipher used?

The ROT cipher is primarily used for educational purposes to illustrate basic cryptography concepts.

It is also used in games, puzzles and sometimes to temporarily hide information.

Historically, the Caesar code was used in antiquity for military communications purposes.

What is the Rot cipher algorithm?

A typical source code for spin encryption would be: // Pseudo-code
function encryptROT(text, shift)
encryptedText = ""
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
foreach character in text {
position = position(character, alphabet)
shiftedPosition = (position + shift) mod 26
encryptedCharacter = alphabet[ shiftedPosition ]
encryptedText += encryptedCharacter
}
return encryptedText
}

Source code

dCode retains ownership of the "ROT Cipher" source code. Except explicit open source licence (indicated Creative Commons / free), the "ROT Cipher" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or the "ROT 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 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 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 Cipher on dCode.fr [online website], retrieved on 2024-12-21, https://www.dcode.fr/rot-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 Cipher' tool for free! Thank you!


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