'translating SQLcipher GUI to CLI (or pyhton)
The question is simple
How can i turn this SQLciper GUI
Into lines of code either in SQLciper CLI or using a python module ?
Here's what i've tried (FAILED ATTEMPTS)
attempt on python using a module
c.execute("PRAGMA key='something'")
c.execute("PRAGMA kdf_iter = 1")
c.execute("PRAGMA kdf_algorithm = PBKDF2_HMAC_SHA1")
c.execute("PRAGMA hmac_algorithm = HMAC_SHA1")
c.execute('SELECT type,name,sql,tbl_name FROM "main".sqlite_master')
attempt on SQLcipher CLI
sqlite> PRAGMA key='secretkeyhere';
sqlite> PRAGMA kdf_iter = 1;
sqlite> PRAGMA cipher_hmac_algorithm = HMAC_SHA1;
sqlite> PRAGMA cipher_kdf_algorithm = PBKDF2_HMAC_SHA1;
sqlite> .tables
Error: file is encrypted or is not a database
It always returns this error, Please help me :")
pysqlcipher3.dbapi2.DatabaseError: file is encrypted or is not a database
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|