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/mister7f/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.1.tar.gz (1.3 kB view hashes)

Uploaded Source

Built Distribution

SQLCrypt-0.0.1-py3-none-any.whl (1.5 kB view hashes)

Uploaded 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