@Test public void testGetMD5Bytes() { byte[] bytes1 = new byte[]{-44, 29, -116, -39, -113, 0, -78, 4, -23, -128, 9, -104, -20, -8, 66, 126}; byte[] bytes2 = new byte[]{82, -119, -33, 115, 125, -11, 115, 38, -4, -35, 34, 89, 122, -5, 31, -84}; Assert.assertArrayEquals(bytes1, MD5.getInstance().getMD5Bytes(new byte[0])); Assert.assertArrayEquals(bytes2, MD5.getInstance().getMD5Bytes(new byte[]{1, 2, 3})); }
public byte[] getMD5Bytes(byte[] content) { return hash(content); }
MD5 { public byte[] getMD5Bytes(byte[] content) { return hash(content); } }
MD5 { public byte[] getMD5Bytes(byte[] content) { return hash(content); } private  MD5(); }
MD5 { public byte[] getMD5Bytes(byte[] content) { return hash(content); } private  MD5(); static MD5 getInstance(); String getMD5String(String content); String getMD5String(byte[] content); byte[] getMD5Bytes(byte[] content); byte[] hash(String str); byte[] hash(byte[] data); String bytes2string(byte[] bt); }
MD5 { public byte[] getMD5Bytes(byte[] content) { return hash(content); } private  MD5(); static MD5 getInstance(); String getMD5String(String content); String getMD5String(byte[] content); byte[] getMD5Bytes(byte[] content); byte[] hash(String str); byte[] hash(byte[] data); String bytes2string(byte[] bt);  }