Skip to main content

Several ciphers for python

Project description


Build Status

This package is intended to contain some of the most famous encryption tools, that includes:

  • Caesar shift
  • Rail fence


Run into your terminal to install:

pip install pythocrypt


For more information, read the latest documentation is at:

You can also check pypi:


Using Caesar's cipher

To encrypt a message using Caesar shift:

from pythoncrypt import caesar

message = "Hello World"
message_encrypted = caesar.encrypt(message)

For decryption is very similar from example above:

from pythoncrypt import caesar

message_encrypted = ""
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_encrypted = ""
message = caesar.decrypt(message_encripted, shift=10)


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.4.tar.gz (135.5 kB view hashes)

Uploaded source

Built Distribution

pythocrypt-0.4-py3-none-any.whl (135.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page