M.Othman
M.Othman

Reputation: 5300

encryption sqliteDB using attached DB not encrypting anything?

i've followed the sqlcipher tutorial

all linking done well compiled, and build very well...

now the turn came to encrypt the data wich should be the easiest part ,, I've used the attached database approch explained in How to encrypt a plaintext SQLite database to use SQLCipher

actually I dont' get it very well,, when we use

sqlite3_exec(db, "PRAGMA key = 'BIGsecret', NULL, NULL, NULL);

we encrypt or decrypt or both !!!!

Any ideas ...

Upvotes: 1

Views: 84

Answers (1)

M.Othman
M.Othman

Reputation: 5300

so since the problem solved for me .. I had to go under the sqlcipher directory where i can use ./config then i linked to the libcrypto.a dynamically as in the tutorial and i had to use ./sqlite3 not sqlite because the version is differ . and then every thing went ok :)

Upvotes: 2

Related Questions