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.23.tar.gz
(20.3 kB
view details)
Built Distribution
File details
Details for the file baseblock-0.2.23.tar.gz
.
File metadata
- Download URL: baseblock-0.2.23.tar.gz
- Upload date:
- Size: 20.3 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 | 5f2daccfd49b0133f00b87b4c992bdee4482b96284b3abe79fcbe1cce1d5b551 |
|
MD5 | 3993420e50d23898a6982946ff958ee8 |
|
BLAKE2b-256 | e85130a8b9e73189b52f095db1b590771747bfd0fd030f8d690175c845868680 |
File details
Details for the file baseblock-0.2.23-py3-none-any.whl
.
File metadata
- Download URL: baseblock-0.2.23-py3-none-any.whl
- Upload date:
- Size: 23.4 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 | 295d945752a9de10b881d99cc5abe252c539d43e1633cb3dd440a4d01f0b534e |
|
MD5 | a4951acf5ade547e687dc3a031b5cd85 |
|
BLAKE2b-256 | deda7ce0fff386265ec99d7d4b7369ca6fd54bb4383c2e13fa6fa151327a12b2 |