Base Block of Common Enterprise Python Utilities
Project description
Base Block (baseblock)
Base Block of Common Enterprise Python Utilities
Crypto Base
Usage
from baseblock import CryptoBase
key = CryptoBase.generate_private_key()
The key
is used to both encrypt and decrypt text, like this:
input_text = "Hello, World!"
crypt = CryptoBase(key)
x = crypt.encrypt_str(input_text)
y = crypt.decrypt_str(x)
assert input_text == y
The key can also be stored in the environment under BASEBLOCK_CRYPTO_KEY.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
baseblock-0.2.12.tar.gz
(19.7 kB
view details)
Built Distribution
File details
Details for the file baseblock-0.2.12.tar.gz
.
File metadata
- Download URL: baseblock-0.2.12.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4208c6f4b9a83fbc228e809b0d87ed98c548d8003420db578af8358492347d3 |
|
MD5 | 7005edbac222c8bb53afad25b31e2d3f |
|
BLAKE2b-256 | c679333cbd7ba6c72e7330345acc14983cb1c9d8381d03245819b6d08671b46f |
File details
Details for the file baseblock-0.2.12-py3-none-any.whl
.
File metadata
- Download URL: baseblock-0.2.12-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0840730beb862334766a24edbea719d40e07828a57e282ba3689516913ffbd7 |
|
MD5 | 8e2c946221162079662bb649d679cd76 |
|
BLAKE2b-256 | 67ec8e86f392acb050285b951bf2da67a034d3d6be330b93953f0cee6e407024 |