Show / Hide Table of Contents

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 : IDisposable
Remarks

NOTE: This is an enterprise edition feature

Constructors

| Improve this Doc View Source

EncryptionKey(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 keyData is null

System.ArgumentOutOfRangeException

Thrown if the data doesn't contain the correct number of bytes

| Improve this Doc View Source

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 Source

Dispose()

Declaration
public void Dispose()

Implements

System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX