Skip to main content
function createSecretKey
createSecretKey(key: ArrayBufferView): KeyObject
Deprecated

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

Parameters

key: ArrayBufferView

Return Type

createSecretKey(
key: string,
encoding: BufferEncoding,
): KeyObject
Deprecated

Parameters

key: string
encoding: BufferEncoding

Return Type

Back to top