Documentation/Calc Functions/ROT13/en

Function name:
ROT13

Category:
Text

Summary:
Applies a simple substitution cipher to the supplied string, by replacing any letter that is in the English alphabet with the letter that is 13 places after it in the alphabet (wrapping around to the beginning of the alphabet if necessary).

ROT13 provides a very weak encryption that may be used to obfuscate the casual reader.

ROT13 is its own inverse, so that  returns the original string Text.

Syntax:
ROT13(Text)

Returns:
Returns a text string that is the encrypted version of the supplied string.

Arguments:
Text is a text string (in quotation marks), or a reference to a cell containing a text string, that is the string to be encrypted.

Additional details:
ROT13 only affects the 52 letters of the English alphabet, a…z and A…Z. Any other character in the input string is unaffected. The following table shows how each letter is encrypted:

More information about the ROT13 algorithm can be found on Wikipedia’s ROT13 page.

Related LibreOffice functions:
None.

ODF standard:
None.

Equivalent Excel functions:
None.