Replies: 19 comments
-
Hello! Then refer to usage of this library in desktop/pure Dart pinned in the discussions section. You will need to tell the package where the native libraries are located. |
Beta Was this translation helpful? Give feedback.
-
Okay thank you.
…On Thu, 9 Mar 2023 at 5:51 PM David Martos ***@***.***> wrote:
Hello!
You would need to install/build SQLCipher in the Dockerfile.
Then refer to usage of this library in desktop/pure Dart pinned in the
discussions section. You will need to tell the package where the native
libraries are located.
—
Reply to this email directly, view it on GitHub
<#70 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIUFLXGFOAJAKWC7YZMOR6TW3HKMJANCNFSM6AAAAAAVVAOY5I>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have macOS Computer
Then build a container with the following dockerfile code:
Now the issue is that the docker container filed to start sqlcipher can you please help how can I easily include sqlcipher in dockerfile. |
Beta Was this translation helpful? Give feedback.
-
What binary file did you copy? It should be a .so file which is what Dart can use with FFI. |
Beta Was this translation helpful? Give feedback.
-
Also, watch out using load library with a relative path. I has issues with that in the past. Try with an absolute path to the .so file first in case that's an issue. |
Beta Was this translation helpful? Give feedback.
-
It was not the .so file, It was just the normal binary file named sqlcipher in Linux, I copied it to my repository |
Beta Was this translation helpful? Give feedback.
-
I have run File('./relativepath').exists() in dart, it's saying that file exists but the issue it not runs and SQL is not loading it. |
Beta Was this translation helpful? Give feedback.
-
Hello @davidmartos96 I have installed the sqlcipher package and overridden it as before but I still give the error of: Please help us find or install the correct sqlcipher in kali-linux? |
Beta Was this translation helpful? Give feedback.
-
And I have installed sqlcipher with where can I find the .so file of it. The file that I am referring is without .so extension |
Beta Was this translation helpful? Give feedback.
-
.so file are normally located under Loading that file in the override should work on Kali Linux. You can then extrapolate to the Dockerfile |
Beta Was this translation helpful? Give feedback.
-
Thank you for your replay, It help me a lot I did look for libsqlcipher.so under /usr/lib/ folder but it doesn't exists there can you please tell me how to download it in kali-linux |
Beta Was this translation helpful? Give feedback.
-
I have did google for it and found this libsqlcipher.so file, then copied it over the folder and called it with override method but the error is still there saying: |
Beta Was this translation helpful? Give feedback.
-
Your best bet will be to compile sqlcipher from sources, then use the .so file that got built. The file you found may be old old it may depend on some other library (like SSL) which you may not have installed. |
Beta Was this translation helpful? Give feedback.
-
Thank you. |
Beta Was this translation helpful? Give feedback.
-
No that I'm aware of. I haven't tried on Kali but I did use this library on Fedora and Ubuntu before |
Beta Was this translation helpful? Give feedback.
-
Ubuntu will be also fine, I can Install Ubuntu If you can please help me provide a .so File Ubunto please. |
Beta Was this translation helpful? Give feedback.
-
On Ubuntu you should be able to install sqlcipher 4.x from a PPA. That should provide the .so you need. |
Beta Was this translation helpful? Give feedback.
-
so PPA is package installer with which I can Install sqlcipher and it provider sqlcipher with .so file? |
Beta Was this translation helpful? Give feedback.
-
@iampopal When you run |
Beta Was this translation helpful? Give feedback.
-
Hello David,
We want to run our server which has a database of sqlitecipher in the server with dart command line
https://dart.dev/tutorials/server/cmdline
When we run our app with flutter as the flutter repository contains sqflite_sqlcipher: ^2.1.1+1 in .yaml file, our flatter app works all good with the local flutter server.
Now we want run our server in a container with Dockerfile so we need command line capability at pure dart code.
You can look at command line simple here: (https://dart.dev/tutorials/server/cmdline)
Please help us how we can have sqflite_sqlcipher in our commandline dart app.
Beta Was this translation helpful? Give feedback.
All reactions