Replies: 20 comments 5 replies
-
@iampopal You can use sqlcipher with sqflite_common_ffi. Check out this: #28 (comment) I don't have plans to support it via this package because this is just a wrapper of the native iOS and Android libraries. |
Beta Was this translation helpful? Give feedback.
-
Thanks @davidmartos96 nice trick I was not aware of. Your comment could definitely make it into the doc. I would link to it if you have it somewhere or copy/paste it in sqflte_common_ffi if you don't mind. |
Beta Was this translation helpful? Give feedback.
-
@alextekartik The only place is that issue thread. You can copy the snippet, I don't mind. |
Beta Was this translation helpful? Give feedback.
-
@davidmartos96 Thank you for the comment, but I am not able to load sqlcipher.dll file in windows Asynchronous error |
Beta Was this translation helpful? Give feedback.
-
I have download sqlcipher.dll file from |
Beta Was this translation helpful? Give feedback.
-
This is the code for loading sqlcipher.dll static DynamicLibrary sqlcipherOpen() {
if (Platform.isLinux || Platform.isAndroid) {
return DynamicLibrary.open('libsqlcipher.so');
}
if (Platform.isMacOS || Platform.isIOS) {
return DynamicLibrary.open('/usr/lib/libsqlcipher.dylib');
}
if (Platform.isWindows) {
return DynamicLibrary.open(join(
'pathTo',
'sqlcipher.dll'));
}
throw UnsupportedError(
'moor_ffi does not support ${Platform.operatingSystem} yet');
} |
Beta Was this translation helpful? Give feedback.
-
@iampopal I wouldn't download any dll from those kind of websites, watch out for that. I'd recommend that you follow the compilation instructions and do it yourself. |
Beta Was this translation helpful? Give feedback.
-
@iampopal Also double check the path of the dll when loading it from Dart |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick replay, i will watch it. |
Beta Was this translation helpful? Give feedback.
-
pathTo is the full path the file folder and it's totally correct. |
Beta Was this translation helpful? Give feedback.
-
@iampopal You can try using an absolute path for loading it first. I know from experience that loading with a relative path may be different depending on how you run the app. So maybe it's simply that the relative path is incorrect. After you know the DLL is correct you can investigate the relative path. |
Beta Was this translation helpful? Give feedback.
-
@davidmartos96 I am getting this error Asynchronous error when using absolute path |
Beta Was this translation helpful? Give feedback.
-
absolutePathTo |
Beta Was this translation helpful? Give feedback.
-
@iampopal If you are using the downloaded dll I wouldn't have my hopes up. Try with the compilation steps from https://github.com/daybson/sqlite_cipher_windows |
Beta Was this translation helpful? Give feedback.
-
I have reviewed this folder and looked for sqlciper.dll but didn't found the sqlciper.dll file which used my many examples to load sqlcipher.dll https://github.com/daybson/sqlite_cipher_windows/tree/master/sqlite%20cipher%20compiled/sqlcipher |
Beta Was this translation helpful? Give feedback.
-
@iampopal It's probably the one called |
Beta Was this translation helpful? Give feedback.
-
I did download the sqlite.dll file and it work with without password database |
Beta Was this translation helpful? Give feedback.
-
@davidmartos96 |
Beta Was this translation helpful? Give feedback.
-
@davidmartos96 Thank you so much, I am able to run an encrypted database using sqlite3.dll file from |
Beta Was this translation helpful? Give feedback.
-
I've made a package with the last community SQLCipher version (4.4.3) for Windows if you want. |
Beta Was this translation helpful? Give feedback.
-
I am using https://pub.dev/packages/sqflite_common_ffi currently as windows database, can we have suport of this package in windows operating system.
Beta Was this translation helpful? Give feedback.
All reactions