
This is a collection of functions for working with base16, also known as hex.
The encodeBase16 function encodes an array of integers into a base16 string.
import { encodeBase16 } from '@aracna/core';
// will log "68656C6C6F"
console.log(encodeBase16([104, 101, 108, 108, 111]));The decodeBase16 function decodes a base16 string into a Uint8Array.
import { decodeBase16 } from '@aracna/core';
// will log [104, 101, 108, 108, 111]
console.log(decodeBase16('68656C6C6F'));