I am using SQLite JDBC driver from xerial project.
Can i secure my sqlite db using username & password with java? If yes, how?
Any help is appreciated.
Thanks in advance.
I am using SQLite JDBC driver from xerial project.
Can i secure my sqlite db using username & password with java? If yes, how?
Any help is appreciated.
Thanks in advance.
I do not know, is this answer necessary for you now? But hope this answer can help other people, who have faced kind of similar problems.
//Using the SQLiteMC default parameters
Connection connection = DriverManager.getConnection("jdbc:sqlite:file:file.db", new SQLiteMCConfig().withKey("Key").toProperties());
Connection connection = new SQLiteMCConfig().withKey("Key").createConnection("jdbc:sqlite:file:file.db");
//Using Chacha20
Connection connection = DriverManager.getConnection("jdbc:sqlite:file:file.db", SQLiteMCChacha20Config.getDefault().withKey("Key").toProperties());
Connection connection = SQLiteMCChacha20Config.getDefault().withKey("Key").createConnection("jdbc:sqlite:file:file.db");