Several ciphers for python
Project description
PythoCrypt
This package is intended to contain some of the most famous encryption tools, that includes:
- Caesar algorithm
Installation
Run into your terminal to install:
pip install pythocrypt
Documentation
Latest documentation is at:
Examples
Using Caesar's cipher
To encrypt a message using Caesar shift:
from pythoncrypt import caesar
message = "Hello World"
message_encripted = caesar.encrypt(message)
For decryption is very similar from example above:
from pythoncrypt import caesar
message_encripted = ""
message = caesar.decrypt(message_encripted)
The default shift is 3
, but you can also change the shift distance,
passing as parameter when calling decrypt method:
from pythoncrypt import caesar
message_encripted = ""
message = caesar.decrypt(message_encripted, shift=10)
License
PythoCrypt is under the MIT License
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
pythocrypt-0.1.tar.gz
(1.8 kB
view hashes)