Skip to main content

Protect your SQLite database with AES !

Project description

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 ''
            )
        """
    )

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

sqlcrypt-0.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

sqlcrypt-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sqlcrypt-0.0.2.tar.gz.

File metadata

  • Download URL: sqlcrypt-0.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sqlcrypt-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ff6d4fc2cba6ac7c30e0eb50608056a8424441d45519e75176929a4fd101eb37
MD5 18f911abc084b16b6a851c242e98ee71
BLAKE2b-256 8a2a5e2012094e4862a2f77186bf13651f3ff3d43857b0410c0971311cda2149

See more details on using hashes here.

File details

Details for the file sqlcrypt-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sqlcrypt-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for sqlcrypt-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ed71ef704cd493771efcba484f6d44aa46e0232536312403cc6376dfb554a057
MD5 825a971610183612711102284242aced
BLAKE2b-256 42283c319202288201858e4ac4174d832d3b8e7811c05ee1d6a9c08ae7833241

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