Click or drag to resize

SymmetricKey Class

Basic AES encryption. Uses a 256-bit (32-byte) key.
Inheritance Hierarchy
SystemObject
  Couchbase.Lite.StoreSymmetricKey

Namespace:  Couchbase.Lite.Store
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public sealed class SymmetricKey : IDisposable

The SymmetricKey type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyHexData
The key data encoded as hex.
Public propertyKeyData
The SymmetricKey's key data; can be used to reconstitute it.
Top
Methods
  NameDescription
Public methodCreateStream
Creates a strem that will encrypt the given base stream
Public methodDecryptData
Decrypts data encoded by encryptData.
Public methodDecryptStream
Streaming decryption.
Public methodDispose
Releases all resources used by the SymmetricKey
Public methodEncryptData
Encrypts a data blob. The output consists of a 16-byte random initialization vector, followed by PKCS7-padded ciphertext.
Top
Fields
  NameDescription
Public fieldStatic memberDATA_SIZE Obsolete.
Number of bytes in a 256-bit key
Public fieldStatic memberDataSize
Number of bytes in a 256-bit key
Public fieldStatic memberENCRYPTED_CONTENT_TYPE Obsolete.
The data type associated with encrypted content
Public fieldStatic memberEncryptedContentType
The data type associated with encrypted content
Top
See Also