Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Vernam cipher

Project Description

— # Vernam 2.3.0

### 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](

Release History

This version
History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(2.2 kB) Copy SHA256 Hash SHA256
Source Apr 12, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting