couchbase-lite-net
couchbase-lite-net copied to clipboard
Provide custom encryption Salt and Rounds in version 2.x
Before version 2 i was doing this:
opts.EncryptionKey = new SymmetricKey("KeySeed", "SaltText", rounds);
Now a custom Salt and Rounds cannot be provided:
var config = new DatabaseConfiguration
{
EncryptionKey = new EncryptionKey("KeySeed") // using default salt and rounds
};
Will that functionality be provided again?
I assume you want to say "please provide this functionality again" instead of asking a question, since the place for questions is the forums ;). The end result of the debate around this was to wait and see how many people asked for it, so I will keep this ticket around. If you find more people that want it (on other platforms also) then have them follow up as well.
@djpongh Need an answer on doing this or not. I assume Cobalt is out at this point.
Good to know you guys are considering this. I also hope encryption becomes again a free feature. Thanks
Just a little side note here: If you want to derive your own key that's also certainly possible, just use the byte[] constructor instead. The actual way to get to this point is pretty easy, and you can use this as a reference
Tracking in CBL-401 (but status still remains undiscussed)