Rate this page:

bytes2hex

Copy URL
bytes2hex(data: 

number[]

,
toUpperCase:

boolean

):

string

Creates a hex string from given bytes array.

Parameters

  • data:

    number[]

    Array of numbers to convert into a string

  • toUpperCase:

    boolean

    Whether the resulting string has uppercase 'A-F' chars. Default is 'false'.

Returns

  • type:

    string