what is the difference between these two lines of code?
var binStr = Buffer.from(hex, 'hex').toString('binary');
and var asc = Buffer.from(hex, 'hex').toString('ascii');
hex = '4d434750040af215000a00000000000a000000000000000000000029'
for more detail check this link jdoodle.com/a/w51
but when I am converting it back into hex using this https://www.rapidtables.com/convert/number/ascii-to-hex.html
then binStr gives correct output and asc gives wrong.
Can anybody tell me why?