(byte bytes[])
| 500 | } |
| 501 | |
| 502 | public static String toHex(byte bytes[]) { |
| 503 | StringBuffer sb = new StringBuffer(bytes.length * 2); |
| 504 | for (int i = 0; i < bytes.length; i++) { |
| 505 | sb.append(convertDigit((int) (bytes[i] >> 4))); |
| 506 | sb.append(convertDigit((int) (bytes[i] & 0x0f))); |
| 507 | } |
| 508 | return (sb.toString()); |
| 509 | } |
| 510 | |
| 511 | private static String calculateSHA1(File file, List<Range> ranges) throws IOException { |
| 512 | try { |
no test coverage detected