Skip to main content

Vernam cipher

Project description

— # Vernam 2.5.6

### Synopsis A simple vernam (or OTP) encryption / decription program in python

— ### Code Example Encode message “super_secret_message” with key “very_secret_key”, store in variable “encoded”, and print as a list. ~~~ >>> encoded = vernam(“super_secret_message”, “very_secret_key”) >>> print( encoded ) ~~~

Decode message stored in variable “encoded” with key “very_secret_key”, store in variable “decoded”, and print as a string. ~~~ >>> decoded = vernam(encoded, “very_secret_key”) >>> print( “”.join(decoded) ) ~~~ — ### Installation Install: ~~~ >>> $ pip install vernam ~~~ Import: ~~~ >>> $ from vernam import vernam ~~~ — ### CLI Usage ~~~ vernam <message> <key> ~~~ — ### License [MIT Licence](

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

vernam-2.5.6.tar.gz (2.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page