LiteDB
LiteDB copied to clipboard
Remove database password
If I try to remove the password from the database with the Shrink function, it seems it is still encrypted but with an empty string. So the connection string still needs to contain password= otherwise it can't ready anything.
Are you passing null in password when call Shrink?
I tried "" and String.Empty I will try null and let you know
Empty string is a password :) Checks here:
https://github.com/mbdavid/LiteDB/blob/master/LiteDB/Engine/Engine/Shrink.cs#L56
Ok, thanks, I feel stupid. It works :-)