@haxall/haxall
    Preparing search index...

    Function createSecretKey

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

      Parameters

      • key: ArrayBufferView

      Returns KeyObject

      v11.6.0

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

      Parameters

      • key: string
      • encoding: BufferEncoding

        The string encoding when key is a string.

      Returns KeyObject

      v11.6.0