Connection connection = null;
// create a database connection
connection = DriverManager.getConnection("jdbc:sqlite:/Users/apple/Downloads/EnMicroMsg.db?
cipher=sqlcipher&hmac_use=0&legacy=1&kdf_iter=4000
&legacy_page_size=1024&key=64846df&compatibility=1");
Statement statement = connection.createStatement();
statement.setQueryTimeout(30); // set timeout to 30 sec.
ResultSet rs = statement.executeQuery("select * from rcontact");
1.The use of sqlcipher is normal, and SQLite JDBC crypt decryption appears
[SQLITE_ NOTADB] File opened that is not a database file (file is not a database)
I'm not sure how to solve this problem. I hope you can help me
I want to use SQLite-JDBC-crypt to decrypt SQLite instead of sqlcipher. I have encountered some problems. I am not sure how to solve them
1.The use of sqlcipher is normal, and SQLite JDBC crypt decryption appears [SQLITE_ NOTADB] File opened that is not a database file (file is not a database) I'm not sure how to solve this problem. I hope you can help me