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 -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -