ROT13

A simple caesar substitution cipher which rotates alphabet characters by the specified amount (default 13).

Input: Text (UTF-8) or original file bytesResult: Binary bytes

Text input

Run to see the result

Examples

Decode the text hidden inside Python's import-this module

Discover a real use of ROT13 and make clear that reversible letter substitution provides no secrecy.

Input

Gur Mra bs Clguba, ol Gvz Crgref

Ornhgvshy vf orggre guna htyl.
Rkcyvpvg vf orggre guna vzcyvpvg.
Fvzcyr vf orggre guna pbzcyrk.
Pbzcyrk vf orggre guna pbzcyvpngrq.
Syng vf orggre guna arfgrq.
Fcnefr vf orggre guna qrafr.
Ernqnovyvgl pbhagf.
Fcrpvny pnfrf nera'g fcrpvny rabhtu gb oernx gur ehyrf.
Nygubhtu cenpgvpnyvgl orngf chevgl.
Reebef fubhyq arire cnff fvyragyl.
Hayrff rkcyvpvgyl fvyraprq.
Va gur snpr bs nzovthvgl, ershfr gur grzcgngvba gb thrff.
Gurer fubhyq or bar-- naq cersrenoyl bayl bar --boivbhf jnl gb qb vg.
Nygubhtu gung jnl znl abg or boivbhf ng svefg hayrff lbh'er Qhgpu.
Abj vf orggre guna arire.
Nygubhtu arire vf bsgra orggre guna *evtug* abj.
Vs gur vzcyrzragngvba vf uneq gb rkcynva, vg'f n onq vqrn.
Vs gur vzcyrzragngvba vf rnfl gb rkcynva, vg znl or n tbbq vqrn.
Anzrfcnprf ner bar ubaxvat terng vqrn -- yrg'f qb zber bs gubfr!

Expected answer

The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate bitcoin genesis newspaper headline

Input

The Times 03/Jan/2009 Chancellor on brink of second bailout for banks

Expected answer

Gur Gvzrf 03/Wna/2009 Punapryybe ba oevax bs frpbaq onvybhg sbe onaxf
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate a registry credential from kubernetes documentation

Input

tiger:pass1234

Expected answer

gvtre:cnff1234
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate a checksum-sensitive log line with a final newline

Input

event=deploy status=ready

Expected answer

rirag=qrcybl fgnghf=ernql
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate a french café in precomposed unicode

Input

café

Expected answer

pnsé
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate a french café with a separate combining accent

Input

café

Expected answer

pnsŕ
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate chinese text in a utf-8 request body

Input

你好,世界

Expected answer

你好,世界
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
Rotate a literal plus and space inside a url parameter

Input

release notes+A/B?

Expected answer

eryrnfr abgrf+N/O?
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
Off
Amount
13
full loop

Input

The Quick Brown Fox Jumped Over The Lazy Dog. 0123456789

Expected answer

UTF-8 text · exact bytes
The Quick Brown Fox Jumped Over The Lazy Dog. 6789012345
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
On
Amount
26
full loop (negative shift amount)

Input

The Quick Brown Fox Jumped Over The Lazy Dog. 0123456789

Expected rejection

Message contains
The Quick Brown Fox Jumped Over The Lazy Dog. 4567890123
Rotate lower case chars
On
Rotate upper case chars
On
Rotate numbers
On
Amount
-26

Format reference: ROT13 background and specification

Related tools

Browse encryption / encoding tools