Hi,
I want to protect an sqlite Database. I know sqlCipher is not available for B4J, so I searched for an alternative. I read this answer on StackOverflow:
I was wondering if it's possible to do that with B4J? With a custom DriverClass? Or should I not bother, and just encrypt the sensitive data with jB4XEncryption?
Thanks for your help.
Jmon
I want to protect an sqlite Database. I know sqlCipher is not available for B4J, so I searched for an alternative. I read this answer on StackOverflow:
You can password protect SQLite3 DB. For the first time before doing any operations, set password as follows.
then next time you can access it likeB4X:SQLiteConnection conn =newSQLiteConnection("Data Source=MyDatabase.sqlite;Version=3;"); conn.SetPassword("password"); conn.open();
This wont allow any GUI editor to view your data. Some editors can decrypt the DB if you provide the password. The algorithm used is RSA.B4X:conn =newSQLiteConnection("Data Source=MyDatabase.sqlite;Version=3;Password=password;"); conn.Open();
Later if you wish to change the password, use
To reset or remove password, useB4X:conn.ChangePassword("new_password");
B4X:conn.ChangePassword(String.Empty);
I was wondering if it's possible to do that with B4J? With a custom DriverClass? Or should I not bother, and just encrypt the sensitive data with jB4XEncryption?
Thanks for your help.
Jmon