org.gudy.bouncycastle.util.encoders
Class Hex

java.lang.Object
  extended by org.gudy.bouncycastle.util.encoders.Hex

public class Hex
extends Object

Converters for going from hex to binary and back.

Note: this class assumes ASCII processing.


Constructor Summary
Hex()
           
 
Method Summary
static byte[] decode(byte[] array)
           
static byte[] decode(String string)
           
static byte[] encode(byte[] array)
           
static byte[] encode(byte[] array, int off, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hex

public Hex()
Method Detail

encode

public static byte[] encode(byte[] array)

encode

public static byte[] encode(byte[] array,
                            int off,
                            int length)

decode

public static byte[] decode(String string)

decode

public static byte[] decode(byte[] array)