(File file)
| 363 | } |
| 364 | |
| 365 | public static byte[] md5(File file) throws IOException { |
| 366 | try { |
| 367 | return hash(file, MessageDigest.getInstance("MD5")); |
| 368 | } catch (NoSuchAlgorithmException e) { |
| 369 | throw new IOException(e); |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | public static byte[] sha1(File file) throws IOException { |
| 374 | try { |