CipherUtil { public static byte[] MD5Bytes(byte[] v) { return md5(v).getBytes(); } private  CipherUtil(); static String MD5Encode(String s); static byte[] MD5Bytes(byte[] v);  }
@Test public void MD5Bytes() throws Exception { final byte[] v = { 97 }; final byte[] expect = { 48, 99, 99, 49, 55, 53, 98, 57, 99, 48, 102, 49, 98, 54, 97, 56, 51, 49, 99, 51, 57, 57, 101, 50, 54, 57, 55, 55, 50, 54, 54, 49 }; Assert.assertArrayEquals(expect, CipherUtil.MD5Bytes(v)); }