Class SharedKey256

Represents a 256-bit symmetric encryption key.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Creates a shared key from bytes or a hex string.

    Parameters

    • sharedKey: string | Uint8Array

      Input string or byte array.

    Returns SharedKey256

Properties

bytes: Uint8Array

Underlying bytes.

NAME: string

Byte array name (required because constructor.name is dropped during minification).

SIZE: number

Byte size of raw shared key.

Methods

  • Returns representation of this object that can be stored in JSON.

    Returns string

    JSON-safe representation of this object.

  • Returns string representation of this object.

    Returns string

    String representation of this object