SymmetricKey Class |
Namespace: Couchbase.Lite.Store
public sealed class SymmetricKey : IDisposable
The SymmetricKey type exposes the following members.
Name | Description | |
---|---|---|
SymmetricKey |
Creates an instance with a random key.
| |
SymmetricKey(Byte) |
Creates an instance from existing key data.
| |
SymmetricKey(String) |
Creates an instance with a key derived from a password, using default salt and rounds.
| |
SymmetricKey(String, Byte, Int32) |
Creates an instance with a key derived from a password.
|
Name | Description | |
---|---|---|
HexData |
The key data encoded as hex.
| |
KeyData |
The SymmetricKey's key data; can be used to reconstitute it.
|
Name | Description | |
---|---|---|
CreateStream |
Creates a strem that will encrypt the given base stream
| |
DecryptData |
Decrypts data encoded by encryptData.
| |
DecryptStream |
Streaming decryption.
| |
Dispose | Releases all resources used by the SymmetricKey | |
EncryptData |
Encrypts a data blob.
The output consists of a 16-byte random initialization vector,
followed by PKCS7-padded ciphertext.
|
Name | Description | |
---|---|---|
DATA_SIZE | Obsolete.
Number of bytes in a 256-bit key
| |
DataSize |
Number of bytes in a 256-bit key
| |
ENCRYPTED_CONTENT_TYPE | Obsolete.
The data type associated with encrypted content
| |
EncryptedContentType |
The data type associated with encrypted content
|