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.1.42.tar.gz
(18.2 kB
view details)
Built Distribution
File details
Details for the file baseblock-0.1.42.tar.gz
.
File metadata
- Download URL: baseblock-0.1.42.tar.gz
- Upload date:
- Size: 18.2 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 | 216cd17104b8feb89a220e3ffdd63898ab0a6b34498eb78960c400ce9ac443de |
|
MD5 | e245fe9a7f839e78bdf8a3c416e40b3c |
|
BLAKE2b-256 | 7b3793f82f6c6b98014768b39ecc87c53a1f0ebf1e5bbfeaf550a69b9b687b5e |
File details
Details for the file baseblock-0.1.42-py3-none-any.whl
.
File metadata
- Download URL: baseblock-0.1.42-py3-none-any.whl
- Upload date:
- Size: 21.1 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 | 05f192525644ebb26d4400a7d910b47178f95db5d5510d218fad7188a33b4b83 |
|
MD5 | 832dbbbf564340cf409a9ece726233b0 |
|
BLAKE2b-256 | 8f893b550cdd894f95d634598d260004dfa30dd859eb883341aae180f3b84aa6 |