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

Uploaded Source

Built Distribution

mendec-0.0.5-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mendec-0.0.5.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for mendec-0.0.5.tar.gz
Algorithm Hash digest
SHA256 84c8f02949312e88056b010e26865adddef88c7e56b48f4409a59b85616c5a9a
MD5 69e69ca3eee6cc133ce4a7392ffbdfb0
BLAKE2b-256 ef60d8075cdb80d7599d95874cf12353492c093683aacc10cf9bf5b162485bb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mendec-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for mendec-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b19f6f3f4b9914a38693e699802c0cc9449de85822dc326fbba16b3d0a8d745e
MD5 0fba8cd6952ded07412a4455601af240
BLAKE2b-256 92f0a296fbe5fb246b1f4c9f5a79b0de0a5756e7c7784309952e00ed64bd4cfc

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