sqlcrypto

Crates.iosqlcrypto
lib.rssqlcrypto
version1.0.1
sourcesrc
created_at2020-10-08 08:28:37.023085
updated_at2021-01-14 09:28:18.984676
descriptionsqlite encryption/decryption
homepage
repositoryhttps://github.com/PizzaCrust/sqlcrypto
max_upload_size
id297192
size37,224
(PizzaCrust)

documentation

https://docs.rs/sqlcrypto

README

SQLCrypto

Latest Version Rust Documentation

SQLCrypto is a pure Rust port of pysqlsimplecipher, a utility to decrypt and encrypt SQLite databases.

⚠ Incomplete encryption implementation ️⚠️

Encryption works for databases that have reserves, however databases without them; cannot be encrypted. Support for them will be added soon, however they will be more expensive to encrypt.

Performance

SQLCrypto, by default, does not parallelize. You can enable parallelization support through enabling the parallel feature flag, significantly boosting performance. Additionally, the aes dependency crate allows you to use aesni, if you change some rustc flags; which will boost performance significantly.

With parallelization + aesni, a database that took an upward amount of 300+ seconds in decryption with pysqlsimplecipher; took <40 ms in decryption and <80 ms in encryption.

Additional notes

Not fuzz tested!

Commit count: 0

cargo fmt