sqlite - sqlcipher how to import a sqlite3 database -


i have dumped sqlite3 database .sql file. afterwards have import files this:

cat databasedump.sql | sqlcipher encrypted_database

then i've opened encrypted database , set key with:

pragma key="12345"

then close database , reopen it, it's still not encrypted.

how can load dump in database , encrypt it?

$ sqlcipher plaintext.db sqlite> attach database 'encrypted.db' encrypted key 'my password'; sqlite> select sqlcipher_export('encrypted'); sqlite> detach database encrypted; 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -