change the driver which is compatible with sqlcipher and modified the way to connect the encrypted sqlite db file

This commit is contained in:
ChessNineeee committed 2021-04-06 23:16:50 +08:00
1 parent aa2761b10e
commit f6da0c30ba
5 files changed
+61 -8

No files matched your search

@@ -210,6 +210,7 @@ public final class Db {
Connection c = Sqlite.getInstance().getConn();
String pubStr = "", priStr = "", certStr, prikeyRawByte = "";
int algo, sign;
if (identity.hasPrivateKey()){
byte[] priByte = identity.getPrikey().getBytes();
priStr = Base64.getEncoder().encodeToString(priByte);