Skip to content

Commit

Permalink
Fix name of SHA-512 algorithm for Java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
LostLuma committed Jun 25, 2024
1 parent f89eda1 commit 2f17f60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static String sha512(Path path) throws IOException {
byte[] data = Files.readAllBytes(path);

try {
digest = MessageDigest.getInstance("SHA512");
digest = MessageDigest.getInstance("SHA-512");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("No SHA512 algorithm found.", e);
}
Expand Down

0 comments on commit 2f17f60

Please sign in to comment.