Skip to main content

encrypt or decrypt caesar ciphers

Project description

Installation

pip install pnu-rot13

ROT13(6)

NAME

rot13 — encrypt or decrypt caesar ciphers

SYNOPSIS

rot13 [-p|--printable] [-r|--rotate number] [--debug] [--help|-?] [--version] [--] [string ...] [filename ...]

DESCRIPTION

The rot13 utility encrypts or decrypts caesar ciphers using a rotation of 13 characters. By default, rot13 reads from the standard input and writes to the standard output. If an optional parameter corresponding to a valid filename is given, rot13 will process this file instead. If the optional parameter is not a filename, rot13 will rotate this string.

OPTIONS

Options Use
-p|--printable Rotate all printable ASCII characters instead of just the alphabetical ones
-r|--rotate number Rotate ''number'' characters instead of 13
--debug Enable debug mode
--help|-? Print usage and a short help message and exit
--version Print version and exit
-- Options processing terminator

ENVIRONMENT

The ROT13_DEBUG environment variable can also be set to any value to enable debug mode.

EXIT STATUS

The rot13 utility exits 0 on success, and >0 if an error occurs.

SEE ALSO

caesar(6), fortune(6)

STANDARDS

The rot13 utility is a standard UNIX command, though not a POSIX one.

It tries to follow the PEP 8 style guide for Python code.

PORTABILITY

Tested OK under Windows.

HISTORY

Rotated postings to USENET and some of the databases used by the fortune(6) program are rotated by 13 characters.

This re-implementation was made for the PNU project.

The ability to process optional strings or filenames, as well as choosing a different rotation or character set, has been added in this re-implementation.

LICENSE

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

AUTHORS

Hubert Tournier

The man page is derived from the FreeBSD project's one.

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!

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pnu_rot13-1.0.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

pnu_rot13-1.0.4-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pnu_rot13-1.0.4.tar.gz.

File metadata

  • Download URL: pnu_rot13-1.0.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pnu_rot13-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3b08c15de3f764c096c56b9e5cbbefacf67631c924a63cfac5acf205c318d61c
MD5 13837aae37d9a927b6740e0ae881a019
BLAKE2b-256 a56faad56e1a91b9b69ebf44c7628add1cb692d868eda81f718d63c35fd2f701

See more details on using hashes here.

File details

Details for the file pnu_rot13-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: pnu_rot13-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pnu_rot13-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9855486f283298e2508d6152e767932edf7fbcacd8cdc7647c505885ddfd85f5
MD5 65110f4ee01c4e8d35c5ee017df48954
BLAKE2b-256 2ff64f60fc29c516a30d051e5472592083f0c9bd4b347fb5fa5256f55144df52

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page