public static final String ALPHABET
The Modhex alphabet: the letters used to decode bytes in.
private static char[] trans
public static String encode(byte[] data)
Encodes.
data
- Data to encode.public static byte[] decode(String s)
Decodes.
s
- Modhex encoded
String
. Decoding ignores case of s
.s
represents.IllegalArgumentException
- If s
not valid Modhex.Copyright © 2013 Yubico AB. All Rights Reserved.