Skip to main content

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.

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baseblock-0.2.24-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for baseblock-0.2.24.tar.gz
Algorithm Hash digest
SHA256 3249bd4e3c3afc5b78db9eba214cb8004fb438ad3f0201d3066af5b89d8876cf
MD5 a0197ead815146e1908042ec27374ae7
BLAKE2b-256 a0e183505102380917f79cff8f5ccd825d9cb399e01856575fabd279fd8db3d0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for baseblock-0.2.24-py3-none-any.whl
Algorithm Hash digest
SHA256 a6b579a73880d9c309405c356859f0f53138509feffec2b50663f32e22c199c8
MD5 2ecd9e56a82b931ba3e11d47c67092fd
BLAKE2b-256 6839eb9bbbfac9070e57828cf3cd1cd9141a199e8b1db3b3e211caa4d2516ca1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.24 This release

2 files

0.2.23

2 files

0.2.22

2 files

0.2.21

2 files

0.2.20

2 files

0.2.19

2 files

0.2.18

2 files

0.2.16

2 files

0.2.15

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.11

2 files

0.2.10

2 files

0.1.50

2 files

0.1.49

2 files

0.1.48

2 files

0.1.47

2 files

0.1.46

2 files

0.1.45

2 files

0.1.44

2 files

0.1.43

2 files

0.1.42

2 files

0.1.41

2 files

0.1.40

2 files

0.1.39

2 files

0.1.38

2 files

0.1.37

2 files

0.1.36

2 files

0.1.35

2 files

0.1.34

2 files

0.1.33

2 files

0.1.32

2 files

0.1.31

2 files

0.1.30

2 files

0.1.29

2 files

0.1.28

2 files

0.1.27

2 files

0.1.26

2 files

0.1.25

2 files

0.1.24

2 files

0.1.23

2 files

0.1.22

2 files

0.1.21

2 files

0.1.20

2 files

0.1.19

2 files

0.1.18

2 files

0.1.17

2 files

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page