我有以下代码可以在 NodeJS 中将二进制转换为十六进制:
const bin = "1011100100001011101010100011100100001001101000100011101110110101101111011000001111111100010010111110001110101011100111101101110101100110110111000001111010101010110001110001110000110101001111111101000100110011111000010111110011001011000000001001010000100100"
const hex = parseInt(bin,2).toString(16).toUpperCase();
console.log(hex)
它只返回:
B90BAA3909A23800000000000000000000000000000000000000000000000000