在python中加密的文件或数据库 [英] Encrypted file or db in python
问题描述
可以使用SQLCipher。
SQLite的开源完整数据库加密
SQLCipher是一个SQLite扩展,提供数据库文件的透明256位AES加密。页面在写入磁盘之前被加密,并在读回时被解密。由于占地面积小,性能出色,因此非常适合保护嵌入式应用数据库,非常适合移动开发。
- 对于许多操作,
加密只有5-15%的开销 - 数据库文件中的100%的数据被加密使用良好的安全性
做法(CBC模式,密钥派生) - 零配置和应用级密码学广泛的平台
- 支持:适用于C / C ++,Obj-C,QT,Win32 /。 NET,Java,Python,
Ruby等,Windows,Linux,iPhone / iOS ...
I have a sqlite3 db which i insert/select from in python. The app works great but i want to tweak it so no one can read from the DB without a password. How can i do this in python? note i have no idea where to start.
You can use SQLCipher.
Open Source Full Database Encryption for SQLite
SQLCipher is an SQLite extension that provides transparent 256-bit AES encryption of database files. Pages are encrypted before being written to disk and are decrypted when read back. Due to the small footprint and great performance it’s ideal for protecting embedded application databases and is well suited for mobile development.
- Blazing fast performance with as little as 5-15% overhead for encryption on many operations
- 100% of data in the database file is encrypted Uses good security practices (CBC mode, key derivation)
- Zero-configuration and application level cryptography Broad platform
- support: works with C/C++, Obj-C, QT, Win32/.NET, Java, Python, Ruby, etc on Windows, Linux, iPhone/iOS…
这篇关于在python中加密的文件或数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!