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 0fc5232 commit 6b6e3bdCopy full SHA for 6b6e3bd
src/java/nginx/unit/websocket/DigestAuthenticator.java
@@ -22,7 +22,7 @@
22
import java.security.SecureRandom;
23
import java.util.Map;
24
25
-import org.apache.tomcat.util.security.MD5Encoder;
+import org.apache.tomcat.util.buf.HexUtils;
26
27
/**
28
* Authenticator supporting the DIGEST auth method.
@@ -140,7 +140,7 @@ private String encodeMD5(String value) throws NoSuchAlgorithmException {
140
MessageDigest md = MessageDigest.getInstance("MD5");
141
byte[] thedigest = md.digest(bytesOfMessage);
142
143
- return MD5Encoder.encode(thedigest);
+ return HexUtils.toHexString(thedigest);
144
}
145
146
@Override
0 commit comments