Skip to main content

Message encryption using RSA algorithm

Project description

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

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.1.tar.gz (20.0 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.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mendec-1.0.1.tar.gz
  • Upload date:
  • Size: 20.0 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.1.tar.gz
Algorithm Hash digest
SHA256 0460839551bf4526fbfb9eb888f6f6f02070b08cd4eebb0a7183dae5b4f5bceb
MD5 e0ba242724cb451c6417433ddd1ea3c9
BLAKE2b-256 3f5b9d51f4392b99d6a4187b25a5d4e600bb7f4d9cd28b6f5f6d556fac20d3e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mendec-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b1b8058500bafded6cc3c3ba1312f19d3c828970f2869e07b3a0581cbf58c050
MD5 10ec00ddbcf69588aeca1f72d6d2d2a1
BLAKE2b-256 60440fc62ddca1eea1d1d76e3bb121f012098ba6bcf1a5077038b6da30128986

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