MCPcopy Create free account
hub / github.com/core-lib/xjar / sha1

Method sha1

src/main/java/io/xjar/XKit.java:373–379  ·  view source on GitHub ↗
(File file)

Source from the content-addressed store, hash-verified

371 }
372
373 public static byte[] sha1(File file) throws IOException {
374 try {
375 return hash(file, MessageDigest.getInstance("SHA-1"));
376 } catch (NoSuchAlgorithmException e) {
377 throw new IOException(e);
378 }
379 }
380
381 public static byte[] hash(File file, MessageDigest hash) throws IOException {
382 try (

Callers 1

makeMethod · 0.95

Calls 1

hashMethod · 0.95

Tested by

no test coverage detected