Crypto Edge
    Preparing search index...

    Function toHex

    • Convert a Uint8Array to a lowercase hex string without relying on Buffer.

      Parameters

      • bytes: Uint8Array

      Returns string

      import { toHex } from "@aspect/crypto-edge";

      const hex = toHex(new Uint8Array([0xde, 0xad, 0xbe, 0xef]));
      // "deadbeef"