带有加密/密码保护的 SQLite

2023-09-18数据库问题
0

本文介绍了带有加密/密码保护的 SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我刚刚在学习使用 SQLite,我很好奇这是否可行:

I'm just learning to use SQLite and I was curious if such is possible:

  1. 数据库文件的加密?

  1. Encryption of the database file?

密码保护打开数据库?

附注.我知道有这个SQLite 加密扩展 (SEE)",但根据文档,SEE 是许可软件......"和SEE 的永久源代码许可的成本是 2000 美元."

PS. I know that there is this "SQLite Encryption Extension (SEE).", but according to the documentation, "The SEE is licensed software...." and "The cost of a perpetual source code license for SEE is US $2000."

推荐答案

SQLite 内置了用于加密的钩子,这些钩子在正态分布中不使用,但这里有一些我知道的实现:

SQLite has hooks built-in for encryption which are not used in the normal distribution, but here are a few implementations I know of:

  • SEE - 官方实现.
  • wxSQLite - 一个 wxWidgets 风格的 C++ 包装器,也实现了 SQLite 的加密.
  • SQLCipher - 使用 openSSL 的 libcrypto 来实现.
  • SQLiteCrypt - 自定义实现,修改后的 API.
  • botansqlite3 - botansqlite3 是 SQLite3 的加密编解码器,可以使用 Botan 中的任何算法进行加密.
  • sqleet - 另一个加密实现,使用 ChaCha20/Poly1305 原语.请注意,上面提到的 wxSQLite 可以将其用作加密提供程序.
  • SEE - The official implementation.
  • wxSQLite - A wxWidgets style C++ wrapper that also implements SQLite's encryption.
  • SQLCipher - Uses openSSL's libcrypto to implement.
  • SQLiteCrypt - Custom implementation, modified API.
  • botansqlite3 - botansqlite3 is an encryption codec for SQLite3 that can use any algorithms in Botan for encryption.
  • sqleet - another encryption implementation, using ChaCha20/Poly1305 primitives. Note that wxSQLite mentioned above can use this as a crypto provider.

SEE 和 SQLiteCrypt 需要购买许可证.

The SEE and SQLiteCrypt require the purchase of a license.

披露:我创建了 botansqlite3.

Disclosure: I created botansqlite3.

这篇关于带有加密/密码保护的 SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在 SQLite 中按月分组
Group by month in SQLite(在 SQLite 中按月分组)...
2024-04-16 数据库问题
6

如何从 Python 中的数据库创建 CSV 文件?
How do I create a CSV file from database in Python?(如何从 Python 中的数据库创建 CSV 文件?)...
2024-04-15 数据库问题
3

SQLite3 和多个进程
SQLite3 and multiple processes(SQLite3 和多个进程)...
2024-04-15 数据库问题
5

如何使用 RSqlite 将 CSV 导入 sqlite?
How to import CSV into sqlite using RSqlite?(如何使用 RSqlite 将 CSV 导入 sqlite?)...
2023-11-28 数据库问题
6

MySQL、PostgreSQL、SQLite中数据库列类型的比较?(交叉映射)
Comparison of database column types in MySQL, PostgreSQL, and SQLite? (Cross-Mapping)(MySQL、PostgreSQL、SQLite中数据库列类型的比较?(交叉映射))...
2023-11-28 数据库问题
20

plist 或 sqlite
plist or sqlite(plist 或 sqlite)...
2023-10-26 数据库问题
3