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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: baseblock-0.2.15.tar.gz
  • Upload date:
  • Size: 19.8 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.15.tar.gz
Algorithm Hash digest
SHA256 36d39c96780b94120e3fd27792430ce8002f4529d519250f9b0f48a267f3e60a
MD5 b0ac78ae2cf537c449528f6265dfc9d5
BLAKE2b-256 87948a0ff046606d4db1841831f2ba452e1681c5bbf3e83827d78cf2d067ba1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: baseblock-0.2.15-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.15-py3-none-any.whl
Algorithm Hash digest
SHA256 f23b6df9bbfedd34ee3692065bef9c85985625a10e61029ee01a8ecb0fdf2f95
MD5 0be8e02978117c437ca834754af9a22e
BLAKE2b-256 03a2cf0f002cffde79809f0573d583d2cc7d5f3ff8212c72f6fecc4190d46df4

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