Converts the specified Hex-encoded string into a raw byte array. This is a convenience method that merely delegates to {@link #decode(char[])} using the argument's hex.toCharArray() value.
Converts an array of characters representing hexadecimal values into an array of bytes of those same values. The returned array will be half the length of the passed array, as it takes two characters to represent any given byte. An exception is thrown if the passed char array has an odd number of elements.
Converts an array of character bytes representing hexadecimal values into an array of bytes of those same values. The returned array will be half the length of the passed array, as it takes two characters to represent any given byte. An exception is thrown if the passed char array has an odd number of elements.
Converts an array of bytes into an array of characters representing the hexadecimal values of each byte in order. The returned array will be double the length of the passed array, as it takes two characters to represent any given byte.
Encodes the specified byte array to a character array and then returns that character array as a string.
Converts a hexadecimal character to an integer.
<a href="http://en.wikipedia.org/wiki/Hexadecimal">Hexadecimal</a> encoder and decoder. <p/> This class was borrowed from Apache Commons Codec SVN repository (rev. {@code 560660}) with modifications to enable Hex conversion without a full dependency on Commons Codec. We didn't want to reinvent the wheel of great work they've done, but also didn't want to force every Shiro user to depend on the commons-codec.jar <p/> As per the Apache 2.0 license, the original copyright notice and all author and copyright information have remained in tact.
@see <a href="http://en.wikipedia.org/wiki/Hexadecimal">Wikipedia: Hexadecimal</a> @since 0.9