Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Use SHA3-512 #1594

Merged
merged 18 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unneeded interface
pluckyswan committed Nov 25, 2024
commit 599359270457941faae2d890c0c52a86aebd6ef8
Original file line number Diff line number Diff line change
@@ -5,15 +5,14 @@
import java.security.NoSuchAlgorithmException;
import java.util.HexFormat;

public class HashHelper implements SecureHash {
public class HashHelper {

private static final HashHelper INSTANCE = new HashHelper();

public static HashHelper getInstance() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind making a follow-up PR to add a private constructor? I'm happy to collaborate with you on that.

return INSTANCE;
}

@Override
public String generateHash(Object input) {
try {
MessageDigest digest = MessageDigest.getInstance("SHA3-512");

This file was deleted.