EncryptionKey Constructor (String, Byte, Int32) |
Creates an instance with a key derived from a password.
Namespace:
Couchbase.Lite
Assembly:
Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0364
Syntax public EncryptionKey(
string password,
byte[] salt,
int rounds
)
Parameters
- password
- Type: SystemString
The password. - salt
- Type: SystemByte
A fixed data blob that perturbs the generated key.
Should be kept fixed for any particular app, but doesn't need to be secret. - rounds
- Type: SystemInt32
The number of rounds of hashing to perform.
More rounds is more secure but takes longer.
See Also