flutter - 如何在 Flutter 中加密 SQLite 数据库?
问题描述
我正在通过以下代码在 Flutter 中创建数据库,有什么方法可以加密数据库吗?
Flutter 有可用的库吗?
initDb() async {
io.Directory documentsDirectory = await getApplicationDocumentsDirectory();
String path = join(documentsDirectory.path, "test.db");
var theDb = await openDatabase(path, version: 1, onCreate: _onCreate);
return theDb;
}
解决方案
Pointy Castle似乎是目前首选的加密库。
推荐阅读
- laravel-5.4 - Laravel-维护模式页面不显示
- javascript - 使用react js获取系统登录用户并显示在网页上
- python - 如何从 Python 3 中的文本文件中获取行和下一行
- javascript - ReactJS - '.env' 文件无法按预期工作
- python - 如何通过类继承实现flask restful
- ios - 带有多个视图的表格视图
- ios - 在为 ios 构建 react-native 应用程序期间编译错误
- javascript - 从 jquery 中删除库的依赖项
- javascript - Javascript从http请求加载和映射数据
- excel - 从数组中的多个字符串中提取数字然后求和 - Excel