bssthu / pysqlsimplecipher

encrypt or decrypt sqlcipher's sqlite db.
GNU Lesser General Public License v3.0
36 stars 11 forks source link

pysqlsimplecipher

Encrypt or decrypt formated sqlite db.

This project is a tool for sqlite database encryption or decryption like sqlcipher without install sqlcipher.

When encrypt or decrypt database, an algorithm called AES-256-CBC is used. Each page shares the same key derived from password, but owns a random initialization vector stored at the end of the page.

Decrypt

python decrypt.py encrypted.db password output.db

Encrypt

python encrypt.py plain.db password output.db

Needs reserved space at the end of each page of the database file.

Otherwise, use sqlcipher to encrypt.

Encrypt with sqlcipher

License

GNU Lesser General Public License Version 3