The toHex()
method of Uint8Array
instances returns a hex-encoded string based on the data in this Uint8Array
object.
This method creates strings from a byte array. To convert individual numbers into hex, use the Number.prototype.toString()
method with radix
set to 16
instead.