mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.36k stars 1.22k forks source link

[QUESTION] How to encrypt existing database file? #2431

Closed oblomingo closed 4 months ago

oblomingo commented 4 months ago

If .NET app has already created a database file without a password, is it possible to add a password and encrypt the database file? I've tried to add a password to a connection string and it didn't work for me.

mbdavid commented 4 months ago

Hi @oblomingo,

You can use Rebuild command with a new password. After rebuild, you need add in your connection string your new password