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
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.