Merge pull request #18084 from github/aibaars/java-sha3

Java: add SHA3 family to list of secure crypto algorithms
This commit is contained in:
Arthur Baars
2024-11-25 15:07:43 +01:00
committed by GitHub
3 changed files with 9 additions and 2 deletions

View File

@@ -25,5 +25,8 @@ public class WeakHashing {
// OK: Property does not exist and default is secure
MessageDigest ok2 = MessageDigest.getInstance(props.getProperty("hashAlg3", "SHA-256"));
// GOOD: Using a strong hashing algorithm
MessageDigest ok3 = MessageDigest.getInstance("SHA3-512");
}
}
}