Skip to main content
Go to Latest
function decodeHexString
import { decodeHexString } from "https://deno.land/std@0.38.0/encoding/mod.ts";

DecodeString returns the bytes represented by the hexadecimal string s. DecodeString expects that src contains only hexadecimal characters and that src has even length. If the input is malformed, DecodeString will throws an error.

Parameters

s: string

the string need to decode to Uint8Array

Returns

Uint8Array