Skip to main content

encrypt or decrypt caesar ciphers

Project description

Installation

pip install pnu-rot13

ROT13(1)

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!

Project details


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.2.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

pnu_rot13-1.0.2-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pnu_rot13-1.0.2.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for pnu_rot13-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3902d6e65d78129af0654a8d91a4ec4fb37481af6f6786ef24a4d032df3cfd85
MD5 cc178d37ea93ff5e2fdea255f578f59c
BLAKE2b-256 e5ee4aaebe0e6dac913d9dd6c3d3f7a466d8ed169fa9b100682ff349cfa4ec0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pnu_rot13-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11

File hashes

Hashes for pnu_rot13-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 04b3df9c952efafb5f232fb3a96a3bf3159894a49d187b48827892178bbcd6a0
MD5 9fa718853ec761da2262ed077a9f0622
BLAKE2b-256 a000c7db01da9571a95698a1b63e066cc8856bff984dfe810051d975a99aa9c3

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