Function createSecretKey

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

    Parameters

    • key: ArrayBufferView

    Returns "crypto".KeyObject

  • Parameters

    • key: string
    • encoding: BufferEncoding

    Returns "crypto".KeyObject

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

    Parameters

    • key: ArrayBufferView

    Returns "crypto".KeyObject

  • Parameters

    • key: string
    • encoding: BufferEncoding

    Returns "crypto".KeyObject

Generated using TypeDoc