public class HashUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decodeHex(String hexString)
Converts a String representing hexadecimal values into an array of bytes of those same values.
|
static String |
toHexString(byte[] bytes)
Converts the given byte array to a Hex formatted string.
|
public static String toHexString(byte[] bytes)
bytes - array of bytespublic static byte[] decodeHex(String hexString) throws IllegalArgumentException
hexString - A String containing hexadecimal digitsIllegalArgumentException - Thrown if an odd number or illegal number of characters is suppliedCopyright © 2018 WSO2. All rights reserved.