createSecretKey - Node documentation
function createSecretKey

Usage in Deno

import { createSecretKey } from "node:crypto";
createSecretKey(key: ArrayBufferView): KeyObject

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

Parameters

key: string
encoding: BufferEncoding

Return Type