Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.64 KB

ROT13.3.md

File metadata and controls

48 lines (32 loc) · 1.64 KB

ROT13(3)

NAME

rot13 — return the ROTXX version of the given text

SYNOPSIS

import rot13

String rot13.rot(String text, Integer rotation, String character_set)

DESCRIPTION

The rot function returns the ROT13 version of the given text.

All the other parameters also have default values and thus are optional.

The rotation parameter sets the character set rotation to be used instead of the default 13.

The character_set parameter defines the characters affected by the rotation. Possible values are:

  • "alphabetical" for [A-Za-z] characters. The default value
  • "ASCII" for printable ASCII characters

SEE ALSO

caesar(6), fortune(6), rot13(6)

STANDARDS

The rot13 library tries to follow the PEP 8 style guide for Python code.

HISTORY

There is a rot13 codec usable with the str.encode() function in Python, but it is less flexible.

This library was made for the PNU project.

LICENSE

This utility is available under the 3-clause BSD license.

AUTHORS

Hubert Tournier

CAVEATS

Unicode characters are left unchanged.

SECURITY CONSIDERATIONS

This command's only purpose is to obfuscate a text, rather than seriously intending to protect it. This last purpose has been deprecated about 2000 years ago!