persistentServerKey

suspend fun persistentServerKey(length: Int = 16, name: String = "default", storage: Storage? = null): ByteString

Loads/creates a random sequence of bytes that can be used as a symmetric key that does not change across server invocations.

Return

persistent key

Parameters

length

length of the key in bytes (16 by default)

name

name of the key, distinct names will result in distinct keys ("default" by default)

storage

storage interface to use (by default BackendEnvironment.getInterface is used to acquire one)