Skip to content

Comments

another weakhash#8

Merged
jzsuftnt merged 1 commit intomainfrom
testformerge
Mar 27, 2025
Merged

another weakhash#8
jzsuftnt merged 1 commit intomainfrom
testformerge

Conversation

@jzsuftnt
Copy link
Owner

No description provided.

@jzsuftnt jzsuftnt merged commit c806684 into main Mar 27, 2025
1 check passed
@lacework-code-security
Copy link

sca found potential 1 new issues

public class AnotherWeakHash {
    public static String hashMD5(String data) throws NoSuchAlgorithmException {
        MessageDigest md = MessageDigest.getInstance("MD5");
        byte[] hashBytes = md.digest(data.getBytes());
        StringBuilder sb = new StringBuilder();
        for (byte b : hashBytes) {
            sb.append(String.format("%02x", b));
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant