I'm using this function to convert byte array to hex string:
function toHexString(bytes)
{
return bytes.map(function (byte)
{
return (byte & 0xFF).toString(16)
}).join('')
}
The issue is that function write bytes <=15 (F in hex) in one character for example:
- 10 --> A (but i want to write 0A)
Any Ideas?