EncryptionKey

actual class EncryptionKey : DelegatedClass<CBLEncryptionKey> (source)
expect class EncryptionKey(source)

ENTERPRISE EDITION API

An encryption key for a database. This is a symmetric key that be kept secret. It should be stored either in the Keychain, or in the user's memory (hopefully not a sticky note.)

actual typealias EncryptionKey = <Error class: unknown class>(source)
actual class EncryptionKey(source)

Constructors

Link copied to clipboard
actual constructor(key: ByteArray)
actual constructor(password: String)
expect constructor(key: ByteArray)

Initializes the encryption key with a raw AES-128 key 16 bytes in length. To create a key, generate random data using a secure cryptographic randomizer.

expect constructor(password: String)

Initializes the encryption key from the given password string. The password string will be internally converted to a raw AES-128 key using 64,000 rounds of PBKDF2 hashing.

actual constructor(key: ByteArray)
actual constructor(password: String)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String