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.
Metadata
Release files for baseblock 0.2.24
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| baseblock-0.2.24.tar.gz | 20.4 kB | Without provenance | Details for baseblock-0.2.24.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baseblock-0.2.24-py3-none-any.whl | Python 3 | none | any | Details for baseblock-0.2.24-py3-none-any.whl |
Total release size: 43.9 kB
Release files / baseblock-0.2.24.tar.gz
| Download URL | baseblock-0.2.24.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3249bd4e3c3afc5b78db9eba214cb8004fb438ad3f0201d3066af5b89d8876cf
|
|
BLAKE2b-256 checksum How to use checksums |
a0e183505102380917f79cff8f5ccd825d9cb399e01856575fabd279fd8db3d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.5 Windows/10
|
Release files / baseblock-0.2.24-py3-none-any.whl
| Download URL | baseblock-0.2.24-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6b579a73880d9c309405c356859f0f53138509feffec2b50663f32e22c199c8
|
|
BLAKE2b-256 checksum How to use checksums |
6839eb9bbbfac9070e57828cf3cd1cd9141a199e8b1db3b3e211caa4d2516ca1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.8.5 Windows/10
|
Security for baseblock 0.2.24
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.