Skip to main content

Message encryption using RSA algorithm

Project description

MEnDec

MEnDec 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 - 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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mendec-1.0.0-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mendec-1.0.0.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for mendec-1.0.0.tar.gz
Algorithm Hash digest
SHA256 53867139b42a04caf35a18894d0b7e71fe2a928c64e40d003b4b22a1fdb5e4c9
MD5 e1f187e00574a2b52dc850f545ad5fc4
BLAKE2b-256 8b2d81cce1654f27508da1eb18f05f0730e6f7016a4da5cb0d58170939e5626d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mendec-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for mendec-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26e09e32ff510a114f9083d14a1c9e066ed5b539bdb34200c03934abf2d6ae1c
MD5 ed8dbd5e4d298c1c19b7306622ca89be
BLAKE2b-256 88e2d7bbb29712d119a21684d2ac7e7aecfe0b29ceecec65b1999dc13fc46bf4

See more details on using hashes here.

Supported by

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