zachd1_618
zachd1_618

Reputation: 4340

How do you get a SQLite3 connection to an encrypted database in Python

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.

Upvotes: 1

Views: 1201

Answers (1)

Joran Beasley
Joran Beasley

Reputation: 113930

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

Upvotes: 1

Related Questions