decodeHex()

Decodes hex-encoded strings based on RFC 4648 ยง8. Supports both lowercase and uppercase hex strings, and throws an Error if the hex string is malformed.

Definition

function decodeHex(data: string): Uint8Array;

Parameters

  • data