Skip to main content

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


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.13.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

baseblock-0.2.13-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file baseblock-0.2.13.tar.gz.

File metadata

  • Download URL: baseblock-0.2.13.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for baseblock-0.2.13.tar.gz
Algorithm Hash digest
SHA256 f06563a4a6c6352b595f4866a8ebff9ca01dc3b5a1549aab26a7844e7dc782ad
MD5 a4e26a5e83eb843c69e9eba21d1a61d7
BLAKE2b-256 3fd1954b374db54b5db1d07361443f7da452a12f0155c4741c52f0bd4ce2a31b

See more details on using hashes here.

File details

Details for the file baseblock-0.2.13-py3-none-any.whl.

File metadata

  • Download URL: baseblock-0.2.13-py3-none-any.whl
  • Upload date:
  • Size: 22.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for baseblock-0.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ef2b515adeaf8806300cb5a1b10bddb1572772cf472dfa64d3e4a24eb71beed0
MD5 6f4c90664a10544fa32d6b00307c739b
BLAKE2b-256 541b962829c236aca5e7b313ed774bfdfd8ce0327f1c3a7de106d8197c449039

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page