Skip to main content

An encryption/decryption program that incorporates OTP

Project description

Enpy

This is an encryption and decryption program that incorporates One Time Pad to encrypt/decrypt text using a randomly generated key.

Usage:

An example portraying how the program can encrypt/decrypt text:

Encryption

The encrypt function takes two arguments which are the text to be encrypted and the key. If a key isn't provided as an argument, the program will generate a random key. The function returns the encrypted message and the key.

import enpy

enc_msg, msg_key = enpy.encrypt("Hello World!", <key>)

Decryption

The Decrypt function takes in 2 arguments which are the encrypted text and the key respectively. It returns the decrypted message and the key.

import enpy

dec_msg, msg_key = enpy.decrypt(<enc_msg>, <key>)

Change Log

1.0.0 (3/9/21)

--First 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 Distribution

enpy-1.0.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

enpy-1.0.0-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

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