Skip to main content

Message encrytion using RSA algorithm

Project description

MEnDec

Python Logo Python package Upload Python Package

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.6.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

mendec-0.0.6-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file mendec-0.0.6.tar.gz.

File metadata

  • Download URL: mendec-0.0.6.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for mendec-0.0.6.tar.gz
Algorithm Hash digest
SHA256 cd8f6c122c01cc137fe667ad7d0df226f9f0e824f70532a7438c1eef32f061d5
MD5 abae76ab35e19cb4af9254277590a303
BLAKE2b-256 b2dbeb825a864ae951dcd44aa8890a2e1054acb1d03d874515bd9df6c4ec0dec

See more details on using hashes here.

File details

Details for the file mendec-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: mendec-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for mendec-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 06574db040833d3d295186648300e68f746ccb78a2a46a66452e34b5e73640e8
MD5 15682f3c57b46ea1ff5d2a3b5479db30
BLAKE2b-256 15287eaea80f398d09202eb58b8326ed1a19331e144a137e8fe719f7a805c67a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page