We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 469c992 commit c6ffcfdCopy full SHA for c6ffcfd
src/main/java/me/vzhilin/auth/digester/Ha1.java
@@ -55,7 +55,7 @@ public static Ha1 preHashed(DigestAlgorithm algorithm, String username, String r
55
public static Ha1 hash(DigestAlgorithm algorithm, String username, String realm, String password) {
56
MessageDigest instance;
57
try {
58
- if (algorithm == DigestAlgorithm.MD5 || algorithm == DigestAlgorithm.MD5_SESS) {
+ if (algorithm == DigestAlgorithm.MD5 || algorithm == DigestAlgorithm.MD5_SESS || algorithm == null) {
59
instance = MessageDigest.getInstance("MD5");
60
} else
61
if (algorithm == DigestAlgorithm.SHA_256 || algorithm == DigestAlgorithm.SHA_256_SESS) {
0 commit comments