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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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