java.lang.Object
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.

  • Field Details

    • encoder

      private static HexTranslator encoder
    • hexTable

      private static final byte[] hexTable
  • Constructor Details

    • Hex

      public Hex()
  • Method Details

    • 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)