khairul169 / gdsqlite-native

SQLite module for Godot 3.x
MIT License
219 stars 41 forks source link

Password protect? #45

Open drakth opened 4 years ago

drakth commented 4 years ago

Is it possible to protect with a password the DB?

TGRCdev commented 4 years ago

Currently not. It wouldn't be very simple to implement either, without introducing large dependencies.

TGRCdev commented 4 years ago

I looked a bit more into encrypted SQLite libraries, and sqleet was one that added key-protected databases without adding too much dependency bloat.

I've built an experimental release which adds the SQLite.open_encrypted(path, password) method if you want to try this out, but I have not tested it on most platforms yet.

Keep in mind that using this method in a GDScript only gives you so much protection, since the password is still in plaintext in the .pck file.

drakth commented 4 years ago

Thank you, ill try it.