createSecretKey

Creates and returns a new key object containing a secret key for symmetric encryption or Hmac.

Since

v11.6.0

Parameters

encoding

The string encoding when key is a string.


external fun createSecretKey(key: String, encoding: BufferEncoding): KeyObject(source)