Skip to main content

A hacky implementation of One-time pad

Project description

One-Time-Pad Python is a command-line encryption tool, which uses an encryption mechanism very similar to One-time Pad (Duh. Thanks for telling that)

Installation

Install it using pip:

$ pip install onetimepad

Usage

To use it from the command-line, run:

$ onetimepad

Or, import the onetimepad module in your script:

#!/usr/bin/env python3

import onetimepad

cipher = onetimepad.encrypt('some text', 'a_random_key')
msg = onetimepad.decrypt(cipher, 'a_random_key')

Security

  1. The crypted message is very easy to crack if the length of key is less than the length of message.

  2. In any case, the key is not nescessarily random, which makes this tool as good as a toy.

  3. Thus, do not encrypt any real private stuff, it won’t protect you from the NSA. It is just a hack.

Copying

This project is licensed under the terms of MIT LICENSE, please see LICENSE file for more details.

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

onetimepad-1.4.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file onetimepad-1.4.tar.gz.

File metadata

  • Download URL: onetimepad-1.4.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for onetimepad-1.4.tar.gz
Algorithm Hash digest
SHA256 1eaade76d8036e1cb79e944b75874bfe5ee4046a571c0724564e1721565c73fd
MD5 b36f64aaf7759e04716bd7904752464b
BLAKE2b-256 85152c9824da8742543eba7d48aafd479cf67c87e880b5a0035709d500d8447b

See more details on using hashes here.

Supported by

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