SQLCrypt
Protect your SQLite database with AES !
SQLCrypt use AES in CBC mode to encrypt your database, HMAC-SHA256 to sign your data and scrypt as key derivation function.
Installation
Just run
pip install sqlcrypt
Or, if you want to be sure to have the latest version
pip install git+ssh://git@github.com/mr7f/sqlcrypt.git
Usage
SQLCrypt is based on APSW, you can initialize your database with your password and then just use it use you use APSW.
from sqlcrypt import Connection
conn = Connection("./_test_sqlcrypt_", "pass")
cursor = conn.cursor()
with conn:
cursor.execute(
"""
CREATE TABLE IF NOT EXISTS accounts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
value INTEGER DEFAULT 0,
name TEXT DEFAULT ''
)
"""
)
Metadata
Release files for SQLCrypt 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlcrypt-0.0.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqlcrypt-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / sqlcrypt-0.0.2.tar.gz
| Download URL | sqlcrypt-0.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff6d4fc2cba6ac7c30e0eb50608056a8424441d45519e75176929a4fd101eb37
|
|
BLAKE2b-256 checksum How to use checksums |
8a2a5e2012094e4862a2f77186bf13651f3ff3d43857b0410c0971311cda2149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / sqlcrypt-0.0.2-py3-none-any.whl
| Download URL | sqlcrypt-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed71ef704cd493771efcba484f6d44aa46e0232536312403cc6376dfb554a057
|
|
BLAKE2b-256 checksum How to use checksums |
42283c319202288201858e4ac4174d832d3b8e7811c05ee1d6a9c08ae7833241
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|