davidmartos96 / sqflite_sqlcipher

SQLite flutter plugin
BSD 2-Clause "Simplified" License
99 stars 44 forks source link

Is there a simple way to use this package outside of Flutter? #16

Closed lollita closed 4 years ago

lollita commented 4 years ago

see

davidmartos96 commented 4 years ago

Since this package is based on sqflite_common and it delegates the SqlCipher implementation to native libraries on iOS and Android I don't think there is an easy way to do it. Your best bet if you want to use SqlCipher on desktop at the moment would be to take a look at moor_ffi and override the Sqlite dynamic library with your own compiled version of SqlCipher.

davidmartos96 commented 4 years ago

@lollita This package relies on Platform channels which is specific to Flutter. Same happens in the sqflite package. To use SqlCipher on a pure Dart process I think FFI is the only option, but not the purpose of this package.