What about using map to convert to hex string?
function toHexString(bytes) { return bytes.map(function(byte) { return ('0' + (byte & 0xFF).toString(16)).slice(-2); }).join(''); } console.log( toHexString(hmac.digest(E.toArrayBuffer(message))));
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What about using map to convert to hex string?