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

Uploaded Source

Built Distribution

baseblock-0.2.10-py3-none-any.whl (22.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: baseblock-0.2.10.tar.gz
  • Upload date:
  • Size: 19.6 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.10.tar.gz
Algorithm Hash digest
SHA256 5edbf89520799455bac6c4cbb8c6297494368aecf84df73a8b3941c7e0c00bea
MD5 e080a4bca23243324d592f8ef974878a
BLAKE2b-256 8ee96ceb0d53bf905691258f39fa336d4dcd9a6849a865fb0d85f6866606bcaa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: baseblock-0.2.10-py3-none-any.whl
  • Upload date:
  • Size: 22.5 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 693824683463d55d9ff1e689eef225c4669d275191f4bb1ea636272168006d73
MD5 a577dc15205a678af6eafe1800cbee32
BLAKE2b-256 d4ef5735ae6472272f75731d1f7b4849fab33429dd10ead55329dfa98c8f5cb0

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