Base Block of Common Enterprise Python Utilities
Reason this release was yanked:
Defect
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.31.tar.gz
(16.9 kB
view hashes)
Built Distribution
baseblock-0.1.31-py3-none-any.whl
(19.9 kB
view hashes)
Close
Hashes for baseblock-0.1.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112fd45b914a5302287d1cfb39bc3084c1ef0a26811e6ee2c6028ca92b0adab0 |
|
MD5 | 11a22fbcb101330bcbd115a2db48fda4 |
|
BLAKE2b-256 | d27a4c62eb2144071be3331be09c218a14f13dd7ad59a33baff4a4c3bcce5593 |