Several simple cipher algorithms
Common classical ciphers implemented in Python. Documentation is available at http://pycipher.readthedocs.io/en/master/ .
pip install git+git://github.com/jameslyons/pycipher
>>> from pycipher import ADFGVX >>> adfgvx = ADFGVX(key='PH0QG64MEA1YL2NOFDXKR3CVS5ZW7BJ9UTI8', keyword='GERMAN') >>> adfgvx.encipher("Hello world!") 'FVFDAGXAFFFFGFAGADFG' >>> adfgvx.decipher(_) 'HELLOWORLD'
The code is hosted on GitHub: https://github.com/jameslyons/pycipher
If you find any bugs make an issue or create a pull request.
To run the test suite:
python setup.py test
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.