Class EncryptionKey
Basic AES encryption. Uses a 256-bit (32-byte) key.
Inheritance
System.Object
    EncryptionKey
  Implements
System.IDisposable
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public sealed class EncryptionKey : IDisposableRemarks
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 | 
|---|---|---|
| System.Byte[] | keyData | The derived key data to use | 
Remarks
NOTE: This is an enterprise edition feature
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | Thrown if  | 
| System.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 | 
|---|---|---|
| System.String | password | The password to derive the key from | 
Remarks
NOTE: This is an enterprise edition feature
Exceptions
| Type | Condition | 
|---|---|
| System.ArgumentNullException | Thrown if password is null | 
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()Implements
      System.IDisposable