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](https://choosealicense.com/licenses/mit/#)
—
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file vernam-2.5.6.tar.gz
.
File metadata
- Download URL: vernam-2.5.6.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4931f46ca31c613efa6f3575da90f2ba4b4927f72f44977a0d7f529c7d3f9735 |
|
MD5 | 2d31450bbcfe3c08998fb5bc5259e25d |
|
BLAKE2b-256 | 9e9f0f594f08b916a46eae676f2dfd3bb14172f033dffd1a01090ed4f78b1929 |