davidmartos96 / sqflite_sqlcipher

SQLite flutter plugin
BSD 2-Clause "Simplified" License
102 stars 46 forks source link

how to use encryption? #8

Closed programmerElephant closed 4 years ago

programmerElephant commented 4 years ago

Hi, david.it's not clear to me how to use encryption? 1.when i create a database.there is no place to set password. 2. if (await Directory(dirname(path)).exists()) { /// why delete it ? await deleteDatabase(path); }



i hope get your response. thank you
davidmartos96 commented 4 years ago

HI, I imagine you are referring to the example project. The db is deleted at the start as a cleanup for the test itself. In your own project you don't need to delete the database. I don't really understand your point 1 though. Could you specify a bit more?

programmerElephant commented 4 years ago

Thank you for your reply. I didn't understand it just now. Now I have understood it

davidmartos96 commented 4 years ago

Great!