Skip to content

Encoding, decoding with classical cipher

License

Notifications You must be signed in to change notification settings

tesuji/classical_cipher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

classical_cipher

Build Status

A Python package and command line script for encoding, decoding with classical cipher such as Caesar Cipher, Vigenere Cipher, Affine Cipher, Playfair, etc

Features

  • Encoding
  • Decoding
  • Command line interface
  • Test suite
  • Only python2 supported

Installation

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

Usage

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.

Testing

Use the following command to test:

python setup.py test

Meta

  • Written by @lzutao
  • Released under MIT License
  • Software is as is - no warranty expressed or implied.

About

Encoding, decoding with classical cipher

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages