Package org.apache.fulcrum.jce.crypto
Class HexConverter
- java.lang.Object
-
- org.apache.fulcrum.jce.crypto.HexConverter
-
public final class HexConverter extends Object
Helper class to for HEX conversion.- Author:
- Jeffery Painter, Siegfried Goeschl, Markus Hahn
-
-
Method Detail
-
toString
public static String toString(byte[] data)
Converts a byte array to a hex string.- Parameters:
data
- the byte array- Returns:
- the hex string
-
toBytes
public static byte[] toBytes(String sHex)
Converts a hex string into a byte[]- Parameters:
sHex
- the hex string- Returns:
- the byte[]
-
-