rot13


rot13, a C code which reads a file and makes a copy in which all characters have been rotated by 13 positions, and all digits have been "rotated" by 5 positions.

Applying the code to the transformed file returns the original. Thus, ROT13 can be used as a very simply method of encoding and decoding text files. Only an idiot would be fooled by this encoding, but nonetheless the encoding serves a number of useful purposes. And often, it's only idiots you have to fool, after all.

Usage:

rot13 file1.txt
where The output filename is the ROT13 transformation of the input filename. In the case of "file1.txt", the output filename would be svyr6.gkg.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

rot13 is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

rot13_test

atbash, a C code which applies the Atbash substitution cipher to a string of text.

caesar, a C code which can apply a Caesar Shift Cipher to a string of text.

chrpak, a C code which works with characters and strings.

filum, a C code which performs various operations on files.

pig_latin, a C code which makes a copy of a file, translating the text into Pig Latin.

uudecode, a C code which reads a UU encoded text file and translates it back to its original form.

uuencode, a C code which translates a file (possibly in binary format) to the UU encoding.

Source Code:


Last revised on 03 August 2019.