Hex input
Converts a hex string to a uint8 array.
A hex encoded string.
A uint8 array corresponding to the input.
Reversed convertion hex string to a uint8 array.
A hex encoded string.
A uint8 array corresponding to the input.
Converts a signed byte to an unsigned byte with the same binary representation.
A signed byte.
An unsigned byte with the same binary representation as the input.
Determines whether or not a string is a hex string.
The string to test.
the expected size of the input
true if the input is a hex string, false otherwise.
It splits the number's bytes into a an array.
the number
the expected size of the array.
Converts a raw javascript string into a string of single byte characters using utf8 encoding. This makes it easier to perform other encoding operations on the string.
A raw string
Decodes two hex characters into a byte.
The first hex digit.
The second hex digit.
The decoded byte.
Converts a uint32 array to a uint8 array.
A uint32 array.
A uint8 array created from the input.
Converts a uint8 array to a hex string.
A uint8 array.
A hex encoded string corresponding to the input.
Converts an unsigned byte to a signed byte with the same binary representation.
An unsigned byte.
A signed byte with the same binary representation as the input.
Converts a uint8 array to a uint32 array.
A uint8 array.
A uint32 array created from the input.
Convert Uint8Array to string with UTF-8 encoding
An UTF-8 string
It creates a number from the bytes in the array.
the number from the bytes.
Convert UTF-8 to hex
An UTF-8 string
Convert UTF-8 string to Uint8Array
An string with UTF-8 encoding
Validates if a string is a valid hex of the expected size.
The string to test.
the expected size of the input
error message.
Generate xor for two byte arrays and return in hex string
Value 1 bytes
Value 2 bytes
Generated using TypeDoc
decode hex to uft8 string