Skip to main content

Protect yourself and your customers with database encryption.

Project description

Protect yourself and your customers with database encryption.

  • Free software: MIT license

Installation

pip install cryptbase

Usage

You can use cryptbase with django ORM or with SQLAlchemy.

To use with SQLAlchemy:

from cryptbase import EncryptedText sensitive = Column(EncryptedText(key=DB_KEY))

To use with django:

from cryptbase import EncryptedTextField sensitive = EncryptedTextField(key=DB_KEY)

DB_KEY is 32 bytes encryption key as hex encoded string. Fields behave as TEXT fields, data are transparently encrypted when storing into the database and decrypted on retrieval.

Development

To run all the tests run:

tox

Changelog

1.0.0 (2021-10-17)

  • Encrypted text field for Django and SQLAlchemy with AES-256-CTR

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

cryptbase-1.0.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

cryptbase-1.0.0-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cryptbase-1.0.0.tar.gz.

File metadata

  • Download URL: cryptbase-1.0.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for cryptbase-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0a788e07c3153dde281b5022c8e7f579da4ef6624b3e50e4f40316fcbd394e9c
MD5 4fe43c50f71bae350d60673bb88392d9
BLAKE2b-256 a3d9e2f66f01f0f6633386277adb24eebeba761f49fb4a155f6546e84c6fc9d3

See more details on using hashes here.

File details

Details for the file cryptbase-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: cryptbase-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for cryptbase-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bb3c7b52801ff5bb2da0ed451020341e2261692a19d2f7f57e94795cb41be263
MD5 8afbc0a0e5527fc12257b44feec95944
BLAKE2b-256 e55320027173d585c92a9751bc261cff191b24a96dfac62ed5259756ddd4c877

See more details on using hashes here.

Supported by

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