Encryption

Use moor on encrypted databases

Starting from 1.7, we have a version of moor that can work with encrypted databases by using the sqflite_sqlcipher library by @davidmartos96. To use it, you need to remove the dependency on moor_flutter from your pubspec.yaml and replace it with this:

dependencies:
  moor: "$latest version"
  encrypted_moor:
   git:
    url: https://github.com/simolus3/moor.git
    path: extras/encryption 

Instead of importing package:moor_flutter/moor_flutter in your apps, you would then import both package:moor/moor.dart and package:encrypted_moor/encrypted_moor.dart.

Finally, you can replace FlutterQueryExecutor with an EncryptedExecutor.