https://github.com/biojet1/mendec
Message encryption using RSA algorithm
https://github.com/biojet1/mendec
command-line-tool cryptography encryption-decryption rsa-cryptography
Last synced: 4 months ago
JSON representation
Message encryption using RSA algorithm
- Host: GitHub
- URL: https://github.com/biojet1/mendec
- Owner: biojet1
- License: mit
- Created: 2021-01-31T10:29:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2026-01-23T12:02:48.000Z (5 months ago)
- Last Synced: 2026-01-24T03:45:41.604Z (5 months ago)
- Topics: command-line-tool, cryptography, encryption-decryption, rsa-cryptography
- Language: Python
- Homepage:
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MEnDec



[github.com/biojet1/mendec](https://github.com/biojet1/mendec)
[pypi.org/project/mendec](https://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'" " | python3 -m mendec encrypt -o CYPHER KEY1 -
```
## Using the second key decrypt the message
```
> python3 -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 | python3 -m mendec encrypt KEY2 | python3 -m mendec decrypt KEY1
Acknowledge
```
# Usage