Show / Hide Table of Contents

Class EncryptionKey

Basic AES encryption. Uses a 256-bit (32-byte) key.

Inheritance
object
EncryptionKey
Implements
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
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
byte[] keyData

The derived key data to use

Remarks

NOTE: This is an enterprise edition feature

Exceptions
Type Condition
ArgumentNullException

Thrown if keyData is null

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
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 Source

Dispose()

Declaration
public void Dispose()

Implements

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