encryptionKey

fun encryptionKey(encryptionKey: ByteArray): S

Sets the 64 byte key used to encrypt and decrypt the Realm file. If no key is provided the Realm file will be unencrypted.

It is important that this key is created and stored securely. See this link for suggestions on how to do that.

Parameters

encryptionKey

64-byte encryption key.