GUACAMOLE-736: Convert Duo signed cookie to lower case prior to encoding.
This commit is contained in:
1 parent
60dab1fdbd
commit
83547ede24
1 file changed
+1
-1
+1
-1
@@ -221,7 +221,7 @@ public class SignedDuoCookie extends DuoCookie {
|
|||||||
mac.init(new SecretKeySpec(key.getBytes("UTF-8"), SIGNATURE_ALGORITHM));
|
mac.init(new SecretKeySpec(key.getBytes("UTF-8"), SIGNATURE_ALGORITHM));
|
||||||
|
|
||||||
// Return signature as hex
|
// Return signature as hex
|
||||||
return BaseEncoding.base16().encode(mac.doFinal(data.getBytes("UTF-8"))).toLowerCase();
|
return BaseEncoding.base16().lowerCase().encode(mac.doFinal(data.getBytes("UTF-8")));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user