synw / sqlcool

Easy and reactive Sqlite for Flutter
MIT License
163 stars 28 forks source link

Encryption support #11

Open BAndonovski opened 5 years ago

BAndonovski commented 5 years ago

It would be great if some kind of encryption support is offered.

synw commented 5 years ago

Did you see https://github.com/drydart/flutter_sqlcipher ? Maybe we could offer a wrapper around this lib with an encrypted option. It's a possibility but the amount of work to make it possible has to be evaluated to see if it is worth it. I'm currently working on major features for the next release cycle but I keep the idea in mind and will investigate this

BAndonovski commented 5 years ago

Yup, I've seen it, but a couple of issues with it: First of all, it's not Sqlcool, and doesn't have the features I like here :) Plus, it's Android only.

I'm sure you're super busy, and I'm open to the idea to jump in and try to help make it happen, but will need a few pointers around, so that no time's wasted. Of course, if you're fine with that?

synw commented 5 years ago

I'm fine with that yes. I have no idea on how to implement this feature so feel free to post details about your ideas and I'll help where I can.

tschiekdev commented 4 years ago

It would be great if some kind of encryption support is offered.

Yes, I would also like that.

Shamash2014 commented 4 years ago

If we can somehow allow using already instantiated SQLite database instance than this instance can be easily encrypted. Makes sense?

synw commented 4 years ago

If we can somehow allow using already instantiated SQLite database instance

You can: instantiate like this:

final db =  Db(sqfliteDatabase: myDataBaseObject)

where sqfliteDatabase is an Sqflite's Database object

Mohammad-Adam commented 4 years ago

+1

kaich commented 4 years ago

https://github.com/davidmartos96/sqflite_sqlcipher. this lib support encrypt.