A Python package and command line script for encoding, decoding with classical cipher such as Caesar Cipher, Vigenere Cipher, Affine Cipher, Playfair, etc
- Encoding
- Decoding
- Command line interface
- Test suite
- Only python2 supported
The latest version can be downloaded via github
.
git clone --depth 1 https://github.com/lzutao/classical_cipher
cd classical_cipher
To install to your local home folder:
python setup.py install --user
Or you want to install system wide:
python setup.py install
Else want to install in development mode
, you may use --user
flag to
only install in your home
python setup.py.py develop
If you get some error such as ValueError: Attempted relative import in non-package
.
You should try to run it as module instead of a single python file:
cd /path/to/classical_cipher
python -m classical_cipher/vigenere/vigenere
Note that you should use classical_cipher/vigenere/vigenere
instead of
classical_cipher/vigenere/vigenere.py
Replace vigenere
with other tools if needed.
Use the following command to test:
python setup.py test
- Written by @lzutao
- Released under MIT License
- Software is as is - no warranty expressed or implied.