m4heshd / better-sqlite3-multiple-ciphers

better-sqlite3 with multiple-cipher encryption support 🔒
MIT License
140 stars 27 forks source link

How to convert a non encrypted database to a encrypted database ? #30

Closed Jun90925 closed 2 years ago

Jun90925 commented 2 years ago

I have a app with better-sqlite3 database already, but how to convert it become a encrypted database ?

m4heshd commented 2 years ago

It's pretty simple as mentioned in the documentation. Although while proceeding to do so, I'd highly recommend using a database created with the same version of SQLite3 to avoid any unintended side effects.