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.
The code uses parts from Markus Hahn's Blowfish library found at
http://blowfishj.sourceforge.net/
- Author:
- Siegfried Goeschl , Markus Hahn
Method Summary |
static byte[] |
toBytes(String data)
Converts a hex string into a byte[] |
static String |
toString(byte[] data)
Converts a byte array to a hex string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HexConverter
public HexConverter()
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 data)
- Converts a hex string into a byte[]
- Parameters:
data
- the hex string
- Returns:
- the byte[]
Copyright © 2008-2009 The Apache Software Foundation. All Rights Reserved.