Class EncryptionKey
Basic AES encryption. Uses a 256-bit (32-byte) key.
Implements
Inherited Members
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public sealed class EncryptionKey : IDisposable
Remarks
NOTE: This is an enterprise edition feature
Constructors
| Improve this Doc View SourceEncryptionKey(byte[])
Creates an instance from existing key data.
Declaration
public EncryptionKey(byte[] keyData)
Parameters
Type | Name | Description |
---|---|---|
byte[] | keyData | The derived key data to use |
Remarks
NOTE: This is an enterprise edition feature
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentOutOfRangeException | Thrown if the data doesn't contain the correct number of bytes |
EncryptionKey(string)
Creates an instance with a key derived from a password, using default salt and rounds.
Declaration
public EncryptionKey(string password)
Parameters
Type | Name | Description |
---|---|---|
string | password | The password to derive the key from |
Remarks
NOTE: This is an enterprise edition feature
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if password is null |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()