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

mysql - FireDac error 314 - but DLLs are in program directory -

python - How to read gradle build progress from it's output? -

c# - How do I debug "System.DllNotFoundException: The specified procedure could not be found"? -