const hexString = 'bada55';
const hex = Uint8Array.from(Buffer.from(hexString, 'hex'));
const backToHexString = Buffer.from(hex).toString('hex');
https://stackoverflow.com/questions/38987784/how-to-convert-a-hexadecimal-string-to-uint8array-and-back-in-javascript
No comments:
Post a Comment