In the code provided the Test1 function should have failed but in fact not. You are always able to read the database even if the provided key in URI is different.
The username is always ignored. The password will be used as key.
IT IS NOT RECOMMENDED TO USE username AND password with SQLite databases. Please use URI configuration, Pragma configuration, or use classes in the org.sqlite.mc package to create the connection.
When doing some tests (https://github.com/Willena/sqlite-jdbc-crypt/issues/14#issuecomment-604663038) for another issue, a bug appeared.
In the code provided the Test1 function should have failed but in fact not. You are always able to read the database even if the provided key in URI is different.
The username is always ignored. The password will be used as key.
IT IS NOT RECOMMENDED TO USE username AND password with SQLite databases. Please use URI configuration, Pragma configuration, or use classes in the org.sqlite.mc package to create the connection.