Skip to main content

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

Release files for mendec 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mendec 1.0.1
File Size Uploaded
mendec-1.0.1.tar.gz 20.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mendec 1.0.1
File Interpreter ABI Platform
mendec-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.4 kB

Release files / mendec-1.0.1.tar.gz

Download URL mendec-1.0.1.tar.gz
Size 20.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0460839551bf4526fbfb9eb888f6f6f02070b08cd4eebb0a7183dae5b4f5bceb
BLAKE2b-256 checksum
How to use checksums
3f5b9d51f4392b99d6a4187b25a5d4e600bb7f4d9cd28b6f5f6d556fac20d3e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / mendec-1.0.1-py3-none-any.whl

Download URL mendec-1.0.1-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1b8058500bafded6cc3c3ba1312f19d3c828970f2869e07b3a0581cbf58c050
BLAKE2b-256 checksum
How to use checksums
60440fc62ddca1eea1d1d76e3bb121f012098ba6bcf1a5077038b6da30128986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.0.9

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page