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

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

excel vba add hyperlink to shape in group -