https://webcodingcenter.com/ecmascript/typed-arrays-and-binary-data--uint8array-base64-and-hex.html
Uint8Array Base64 and Hex – Typed Arrays and Binary Data – JavaScript | Web Coding Center
btoa() and atob() handle only "binary strings", so they throw on text outside Latin-1.
typed arraysbinary datahexjavascriptweb