I wonder if sqflite package in flutter is secure and hidden in the devices?
I could see sqflite database in my ios device in path: Files -> Browse -> Locations section -> On my iPhone -> AppName -> db_name.db
I found the database I created in the path above, and I think every one can edit, it's a big problem. So how to hide/encrypt the database in devices?
Best regards
You can usethis package
https://pub.dev/packages/sqflite_sqlcipher
And set a password to accessthe db content
import 'package:sqflite_sqlcipher/sqflite.dart';
Database db = await openDatabase(
path,
password: "my password",
// onCreate, onUpgrade...
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.