How can I make the modified code work in sqlite-jdbc-crypt? #135
Replies: 4 comments 5 replies
-
What sort of modification did you apply?
This only tells you that you didn't make any syntactical mistakes. It doesn't tell you that your modifications were semantically correct.
Without a crystal ball I can't answer your question. Without knowing which modifications you applied in which parts of the code it is impossible to tell why it doesn't work as expected. Only if you show us your modifications and describe the expected behaviour, it may be possible to answer your question. |
Beta Was this translation helpful? Give feedback.
-
As @Willena already pointed out the better approach would be to add such logic in your own application. Patching the SQLite sources is cumbersome and you have to redo it for every new version. In your code you added a
How do you know that your logic was not executed?
Yes.
None. Do it in your application or in a UDF.
As @Willena already explained this project contains a Python script that you can use to generate the amalgamated source code. |
Beta Was this translation helpful? Give feedback.
-
Usually it's not a good idea to have the key somewhere hard coded in the sources of an application - at least from a security standpoint of view. Whether it is encrypted or not doesn't really matter.
Why? Just like a call to
In principle, the UDF could call
UDFs are coded in C. Samples can be found in the source distribution of SQLite (see section Alternative Source Code Formats). |
Beta Was this translation helpful? Give feedback.
-
This issue was solved through the following steps. Although there were some issues with specific programming principles, I understood how to modify SQLite3MultipleCiphers code and compile JDBC.
|
Beta Was this translation helpful? Give feedback.
-
I modified some code in the SQLite3MultipleCiphers , then successfully compiled and installed it (make install). Then I recompiled sqlite-jdbc-crypt (make native), executed database operations through jdbc, but the modified code did not take effect. How can I make the modified code work in sqlite-jdbc-crypt?
OS: ubuntu 22.04
OpenJDK 64-Bit Server VM (build 11.0.20.1+1-post-Ubuntu-0ubuntu122.04, mixed mode, sharing)
Beta Was this translation helpful? Give feedback.
All reactions