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

    If set to 'true', resulting string will have uppercase 'A-F' chars. Default is 'false'.

Returns

  • type:

    string