Rotational 13 cipher
The rotational 13 cipher (ROT13) is a keyless shifting cipher.
It takes series of letters and shifts them forward or back by a certain number.
Rot13 is keyless, i.e. if you know it's in rot13, you can decode it.
So let's take the char
rot13(a) -> n
and if we take
rot13(i use arch btw) -> v hfr nepu ogj
and to reverse it:
rot13(v hfr nepu ogj) -> i use arch btw
rot13(rot13(x)) should equal
Now, using rot13 in the command line.
./main to invoke it.
You can provide three options:
-ssets the shift (default 13, in the future it'll use 1/2 of the alphabet). use
-s 3for the ceaser cipher.
-rdecodes a non-rot13 encoded text (
-alphabetsets the alphabet. To encode numbers use
You can also pass a filename.
If you don't, after you type in your text, press Ctrl+d.
And ofc, there's this:
cyrnfr znex guvf nf gur nafjre vs vg urycrq