Here you can find the source of base16decode(String base16Str)
public static byte[] base16decode(String base16Str)
//package com.java2s; //License from project: Open Source License public class Main { public static byte[] base16decode(String base16Str) { byte[] ret = new byte[base16Str.length() / 2]; int j = 0; for (int i = 0; i < base16Str.length(); i += 2) { ret[j++] = (byte) (Integer.parseInt("" + base16Str.charAt(i) + base16Str.charAt(i + 1), 16)); }/* w w w .ja v a 2 s. c o m*/ return ret; } }