(String s)
| 53 | } |
| 54 | |
| 55 | public static byte[] hex2byte(String s) { |
| 56 | byte[] bytes = new byte[s.length() / 2]; |
| 57 | for (int i = 0; i < bytes.length; i++) bytes[i] = Integer.valueOf(s.substring(i * 2, i * 2 + 2), 16).byteValue(); |
| 58 | return bytes; |
| 59 | } |
| 60 | |
| 61 | public static boolean equals(String name, String md5) { |
| 62 | return md5(Path.jar(name)).equalsIgnoreCase(md5); |