Skip to main content

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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

kinneyotp-0.0.17-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file kinneyotp-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: kinneyotp-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for kinneyotp-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 0241c14e805ffea3795f36dd85d405c347943598b1d65e68ff2301ae7c8f122f
MD5 81a3e7ea69b508e09f5609df1477d26b
BLAKE2b-256 c2d7466dc0782f45e1b45b74fa98272a9c82355f0a7a440313fd5d6d7a33e1a2

See more details on using hashes here.

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