gdsqlite-native icon indicating copy to clipboard operation
gdsqlite-native copied to clipboard

Password protect?

Open drakth opened this issue 4 years ago • 3 comments

Is it possible to protect with a password the DB?

drakth avatar Apr 16 '20 19:04 drakth

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

TGRCdev avatar Apr 16 '20 22:04 TGRCdev

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.

TGRCdev avatar Apr 17 '20 22:04 TGRCdev

Thank you, ill try it.

drakth avatar Apr 20 '20 22:04 drakth