Skip to main content

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

Metadata

Release files for cryptbase 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cryptbase 1.0.0
File Size Uploaded Provenance
cryptbase-1.0.0.tar.gz 14.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cryptbase 1.0.0
File Interpreter ABI Platform
cryptbase-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.7 kB

Release files / cryptbase-1.0.0.tar.gz

Download URL cryptbase-1.0.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0a788e07c3153dde281b5022c8e7f579da4ef6624b3e50e4f40316fcbd394e9c
BLAKE2b-256 checksum
How to use checksums
a3d9e2f66f01f0f6633386277adb24eebeba761f49fb4a155f6546e84c6fc9d3
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cryptbase-1.0.0-py2.py3-none-any.whl

Download URL cryptbase-1.0.0-py2.py3-none-any.whl
Size 5.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bb3c7b52801ff5bb2da0ed451020341e2261692a19d2f7f57e94795cb41be263
BLAKE2b-256 checksum
How to use checksums
e55320027173d585c92a9751bc261cff191b24a96dfac62ed5259756ddd4c877
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for cryptbase 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page