Skip to content

biojet1/mendec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEnDec

MEnDec Logo

Python package for Message ENcryption and DEcryption

GitHub stars PyPI version Workflow Name Workflow Name

Install

pip install mendec

Usage

Generate the secret key piar

> python -m mendec keygen --bits 384 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 - 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

About

Message encryption using RSA algorithm

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors