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
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
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
Built Distribution
File details
Details for the file pnu_rot13-1.0.0.tar.gz
.
File metadata
- Download URL: pnu_rot13-1.0.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5467c4748f1fed7c5368fc1a06bbed5a58dc5b43d21ab6bacdea013f756412f |
|
MD5 | ededd164726b6633fd1757ee2d47c1e2 |
|
BLAKE2b-256 | d49bd460e8f16f0781813e5ed928b16d4c1446db7f077aa622c1ffde1360f64c |
File details
Details for the file pnu_rot13-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pnu_rot13-1.0.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | e071f8c9391d1d450784a9b706205d6a8408f95c741896b018909019a0b99ea2 |
|
MD5 | 234638804018e4cb4de980e878d41d05 |
|
BLAKE2b-256 | e385dc4deed9ae2402272e89a6d066f30601e64b08acc7cdf108d68276042721 |