@me2em/crypto
    Preparing search index...

    Function toHex

    • Encodes a Uint8Array as a lowercase hexadecimal string.

      Parameters

      • bytes: Uint8Array

        The byte array to encode.

      Returns string

      The hex string (two chars per byte).

      const hex = toHex(new Uint8Array([0x0f, 0xff]));
      // '0fff'