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
Post a Comment