1

I have created a simple SQLite3 database using SQLiteManager. The database is encrypted with an AES 128 encryption, done within the SQLiteManager program. My question is, can you specify the encryption password in the python connection string?

con=sqlite3.connect("secrets.sqlite")

Returns a connection, but with no data accessible within the database.

Since there are multiple options out there to encrypt a database, not just limited to what was done in SQLiteManager, I want to know if you can add password information to the standard sqlite3.connect() function in order to access database information.

4
  • 1
    no ... sqlite in general does not support encryption .... not sure what SQLiteManager is doing ... but its their own version of "secure sqlite" ... also what do you mean by no data accessible? does it give you an error if you try a query? or you get junk back or? Nov 24, 2014 at 19:37
  • Okay, suppose that answers the question then. If you actually mark that as an answer I'll accept it. No data accessible means that all queries just return empty dataset. Same behavior as when I do it from the command line via a sqlite> prompt.
    – zachd1_618
    Nov 24, 2014 at 19:43
  • I added it as an answer... all though its hardly a helpful answer ... Nov 24, 2014 at 19:48
  • 1
    SQLiteManager appears to be using SQLCipher. I haven't tried it, but pysqlcipher might be what you are looking for. See also this SO question.
    – unutbu
    Nov 24, 2014 at 19:52

1 Answer 1

1

no ... sqlite in general does not support encryption .... not sure what SQLiteManager is doing ... but its their own version of "secure sqlite" ...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.