Skip to main content

Enpy

This is an encryption and decryption program that incorporates One Time Pad to encrypt/decrypt text using a randomly generated key.

Usage:

An example portraying how the program can encrypt/decrypt text:

Encryption

The encrypt function takes two arguments which are the text to be encrypted and the key. If a key isn't provided as an argument, the program will generate a random key. The function returns the encrypted message and the key.

import enpy

enc_msg, msg_key = enpy.encrypt("Hello World!", <key>)

Decryption

The Decrypt function takes in 2 arguments which are the encrypted text and the key respectively. It returns the decrypted message and the key.

import enpy

dec_msg, msg_key = enpy.decrypt(<enc_msg>, <key>)

Change Log

1.0.0 (3/9/21)

--First release.

Release files for enpy 1.0.0

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

Source distribution (sdist)

Source distribution for enpy 1.0.0
File Size Uploaded
enpy-1.0.0.tar.gz 2.4 kB Details

Built distribution (wheel)

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

Total release size: 4.9 kB

Release files / enpy-1.0.0.tar.gz

Download URL enpy-1.0.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
733a4c992e2684f70e32b8302627135b417980457f1c63b6e0a88a583076a4f8
BLAKE2b-256 checksum
How to use checksums
275c5f97bc6a30f8acea78edaaef31cfca2428490e6397d924c1a81810ff5524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

Release files / enpy-1.0.0-py3-none-any.whl

Download URL enpy-1.0.0-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2442484a2cca6d74ad923f1697f70680c906f688be573c36911d32f118f43a11
BLAKE2b-256 checksum
How to use checksums
87b8269c4a8a10e35b3f6c10588f196ac801ea71b6cd05abfaa471b9aaa92a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

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