Skip to main content

Message encrytion using RSA algorithm

Project description

MEnDec

Python Logo Python package Upload Python Package

Python package for message encryption

Install

pip install https://github.com/biojet1/mendec/archive/master.zip

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

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

Uploaded Source

Built Distribution

mendec-0.0.2-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mendec-0.0.2.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for mendec-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d31c949255dc98c2c5183d06c8827be78187507447a4d8e29a83350f9a212bff
MD5 188d3ca9489ed41ac67cb5b6483df87f
BLAKE2b-256 100bd78c92db249ff12c7296b2016fa5eb50aa67466c613144869e10d4b5e39f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mendec-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for mendec-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27ce6ac7a64e12dee1796184cb5e62db140969c7c4aa3e78f8007b35e203bdf5
MD5 cbc822450b5f77c8625e9ab8aabb0acd
BLAKE2b-256 cdc0a3acd6f3146704d0419c1e0d0f094092c89aa5966137901063904b9a1a33

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