Skip to content

Comments

Testformerge#6

Merged
jzsuftnt merged 2 commits intomainfrom
testformerge
Feb 25, 2025
Merged

Testformerge#6
jzsuftnt merged 2 commits intomainfrom
testformerge

Conversation

@jzsuftnt
Copy link
Owner

No description provided.

@jzsuftnt jzsuftnt merged commit 64a36e1 into main Feb 25, 2025
1 check failed
@lacework-code-security
Copy link

sca found potential 2 new issues

public class WeakHash {
    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));
        }

public class WeakkHash {
    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