Message encrytion using RSA algorithm
Project description
MEnDec
github.com/biojet1/mendec pypi.org/project/mendec
Python package for Message ENcryption and DEcryption
Install
pip install mendec
Usage
Generate the secret key piar
> python -m mendec keygen --bits 384 --output SECRET_KEY
Extract first key
> python -m mendec pick SECRET_KEY 1 KEY1
Extract second key
> python -m mendec pick SECRET_KEY 2 KEY2
Using the first key encrypt a message to CYPHER file
> printf 'Attack at Noon' | python -m mendec encrypt KEY1 -o CYPHER
Using the second key decrypt the message
> python -m mendec decrypt KEY2 < CYPHER
Attack at Noon
Using the second key encrypt the message, then the first key to decrypt the message
> printf Acknowledge | python -m mendec encrypt KEY2 | python -m mendec decrypt KEY1
Acknowledge
Usage
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
mendec-0.0.4.tar.gz
(11.2 kB
view details)
Built Distribution
mendec-0.0.4-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file mendec-0.0.4.tar.gz
.
File metadata
- Download URL: mendec-0.0.4.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a983e82f0bd9041d9e9211b068f0238b41ae33b908625564763d14f971ef7c5e |
|
MD5 | 5465a75c72505f46e615cdbdedcd1003 |
|
BLAKE2b-256 | 26cebe82836969fa95694a00cf5225f95cf10704055c69ccb322aec7f521c349 |
File details
Details for the file mendec-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: mendec-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b840750fd8877766b902979d13bafd1c534287e96e949cdb6b672abe6a3b901 |
|
MD5 | 7ed023f77a30eefe31b579c80e8b4031 |
|
BLAKE2b-256 | 2d8a8dc005d57e902d4c439060d24a9ae88ca93afff7398ac816904ee7ee7f77 |