function createSecretKey
Jump to headingcreateSecretKey(key: ArrayBufferView): KeyObject
Creates and returns a new key object containing a secret key for symmetric
encryption or Hmac
.
Parameters Jump to heading
Jump to headingkey: ArrayBufferView
Return Type Jump to heading
Jump to headingcreateSecretKey(key: string,encoding: BufferEncoding,): KeyObject
Parameters Jump to heading
Jump to headingkey: string
Jump to headingencoding: BufferEncoding