EncryptionKey

expect constructor(key: ByteArray)(source)

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.

Parameters

key

The raw AES-128 key data.


expect constructor(password: String)(source)

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.

Parameters

password

The password string.

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