previous Menunext

Rotation

Functionality and example

OT-X is a substitution cipher (also called Caesar's cipher) which is a simple way to encode text. This is achieved by subsituting letters, e.g. ROT-X will subtitute a letter of the alphabet with another letter which is X places further ahead in the alphabetic order. If the rotation will exceed the letter Z one will simply go on with the letter A. Hint on geocaching.com are encrypted in ROT-13

Beispiele:

ROT10, "TEST" = "DOCD" (E is letter at 5th position -> (5 + 10)th position is O)



All hints at geocaching.com are enciphered using ROT-13.

Quelle: Wikipedia

Operation



Input
  1. The characters to be converted
  2. The number or rotations
  3. The direction of rotation (forward/backward)
Output
The characters after using the respective number of rotations