khairul169/gdsqlite-native

Password protect?

Opened this issue · 3 comments

Is it possible to protect with a password the DB?

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

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.

Thank you, ill try it.