baseblock 0.2.24

Last updated:

0 purchases

baseblock 0.2.24 Image
baseblock 0.2.24 Images
Add to Cart

Description:

baseblock 0.2.24

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.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.