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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file enpy-1.0.0.tar.gz.
File metadata
- Download URL: enpy-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
733a4c992e2684f70e32b8302627135b417980457f1c63b6e0a88a583076a4f8
|
|
| MD5 |
390d8f2ef7324d6b82379e4afa38d683
|
|
| BLAKE2b-256 |
275c5f97bc6a30f8acea78edaaef31cfca2428490e6397d924c1a81810ff5524
|
File details
Details for the file enpy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: enpy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2442484a2cca6d74ad923f1697f70680c906f688be573c36911d32f118f43a11
|
|
| MD5 |
eef601ee9ea9bc2fab7199274412d608
|
|
| BLAKE2b-256 |
87b8269c4a8a10e35b3f6c10588f196ac801ea71b6cd05abfaa471b9aaa92a0a
|