Skip to content
No description or website provided.
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.rst
rotx.py
setup.py
test_rotx.py
tox.ini

README.rst

A Python implementation of the very secure and useful [1] rotX (also known as caesar ciphers) family of encryption algorithms.

Usage

rotx.py contains a single function, rot. The signature for this function is as follows (where n is your encryption key):

rotx.rot(input, n, alphabetical_only=True)

To decrypt, invert n. alphabetical_only decides whether to only encrypt the ASCII letters (like a true caesar cipher, leaving the other characters intact, including numbers) or to use the full spectrum of the encoding in use (all 8 bits if a bytestring, up to 0xFFFF or 0x10FFFF for unicode depending on whether your Python installation was compiled with UCS-2/UTF-16 or UCS-4/UTF-32).

There is also a CLI provided, run rotx -h for more documentation.

Testing

Testing is done using tox and Pythonbrew, run the following assuming both of these have been installed to run the tests:

$ pythonbrew install 2.7.3
$ pythonbrew install 2.6.6
$ tox

Why?

Because I was bored, and wanted an excuse to learn more about debian packaging.

[1]Disclaimer: The rotX algorithms are neither actually secure nor useful.
Something went wrong with that request. Please try again.