public final class HexConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
bytesToHex(byte[] bytes)
Converts a byte array to its hexadecimal string representation, ie.
|
static byte[] |
hexToBytes(java.lang.String hexString)
Converts a hexadecimal formatted string into a corresponding byte array.
|
public static java.lang.String bytesToHex(byte[] bytes)
bytes
- an array of bytespublic static byte[] hexToBytes(java.lang.String hexString)
hexString
- a hexadecimal representation of a byte array