Metadata-Version: 2.1
Name: mendec
Version: 0.0.5
Summary: Message encrytion using RSA algorithm
Home-page: https://github.com/biojet1/mendec
Author: biojet1
Author-email: biojet1@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# MEnDec
![Python Logo](https://www.python.org/static/community_logos/python-logo.png "Sample inline image")
![Python package](https://github.com/biojet1/mendec/workflows/Python%20package/badge.svg)
![Upload Python Package](https://github.com/biojet1/mendec/workflows/Upload%20Python%20Package/badge.svg)

[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' | 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


