couchbase-lite-net icon indicating copy to clipboard operation
couchbase-lite-net copied to clipboard

Provide custom encryption Salt and Rounds in version 2.x

Open alexrainman opened this issue 7 years ago • 5 comments
trafficstars

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?

alexrainman avatar Jun 02 '18 18:06 alexrainman

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.

borrrden avatar Jun 04 '18 12:06 borrrden

@djpongh Need an answer on doing this or not. I assume Cobalt is out at this point.

borrrden avatar Jun 01 '19 00:06 borrrden

Good to know you guys are considering this. I also hope encryption becomes again a free feature. Thanks

alexrainman avatar Jun 01 '19 00:06 alexrainman

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

borrrden avatar Jun 04 '19 00:06 borrrden

Tracking in CBL-401 (but status still remains undiscussed)

borrrden avatar Sep 13 '19 23:09 borrrden