我通过以下代码在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目前似乎是首选的加密库。