One Time Pad (aka Vernam Cipher) encoding and decoding.
Project description
About
This code is similar to a "one time pad" (aka Vernam Cipher) which can be used to encode/decode messages.
Notes
- The key must be the same length as the uncoded text.
- The key must be truly random.
- The key must never be reused, in whole or in part.
- The key must be kept completely secret by the communicating parties.
- Consider adding (or using) a character (or phrase) that indicates that the message was sent under duress.
Development
For development, run the following commands.
create python environment
python3 -m venv venv
source venv/bin/activate
pip install pytest pytest-cov
run the unit tests
make test
show code coverage
make cov
building for distribution
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
distribute to pypi
make release
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
kinneyotp-0.0.6.tar.gz
(9.5 kB
view hashes)
Built Distribution
Close
Hashes for kinneyotp-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5333b24eee5b58ad976888e92084858fa551cf1df5e6aa80610f4b83e0a4de |
|
MD5 | e99f8b0989abf2b875387eab9ab426fa |
|
BLAKE2b-256 | 224eb5ec0ee3a54b57241df95faf5720f81051007d060526cc2add4e3f04a6b4 |