This commit is contained in:
Yuxin Wu
2023-05-20 18:15:50 -07:00
parent 3971729641
commit baef03db85
+1 -1
View File
@@ -138,7 +138,7 @@ def do_decrypt(input, output, key):
conn = sqlite.connect(input)
c = conn.cursor()
version_str = list(conn.execute("PRAGMA cipher_version"))[0][0]
version = tuple([int(x) for x in version_str.split(".")])
version = tuple([int(x) for x in version_str.split(".")[:2]])
assert version >= (4, 1), "Sqlcipher>=4.1 is required"
c.execute("PRAGMA key = '" + key + "';")