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.3.tar.gz
(10.8 kB
view details)
Built Distribution
mendec-0.0.3-py3-none-any.whl
(14.5 kB
view details)
File details
Details for the file mendec-0.0.3.tar.gz
.
File metadata
- Download URL: mendec-0.0.3.tar.gz
- Upload date:
- Size: 10.8 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.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26bab57e111d667a6f89f2098de5e1fc40f03ab55c6938d4910ed943864e0089 |
|
MD5 | 2e3cdfc0648785f543f8443ed054c547 |
|
BLAKE2b-256 | daa5928f84d17114babcb49d13452acbdf745373ea7d56d74894f500ae0bb2eb |
File details
Details for the file mendec-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: mendec-0.0.3-py3-none-any.whl
- Upload date:
- Size: 14.5 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.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b364e62dd7e380126a96421ae84baea2024261dbe3de8df294b7deb572583425 |
|
MD5 | ab8ee01847bd35563d6c798cbed373b1 |
|
BLAKE2b-256 | 300d1eb3c16e413537383bfafa9cef2360cca6517ea8847e6ce0bcb9093afead |