GUACAMOLE-736: Convert Duo signed cookie to lower case prior to encoding.

This commit is contained in:
Virtually Nick
2019-03-04 06:41:29 -05:00
parent 60dab1fdbd
commit 83547ede24

View File

@@ -221,7 +221,7 @@ public class SignedDuoCookie extends DuoCookie {
mac.init(new SecretKeySpec(key.getBytes("UTF-8"), SIGNATURE_ALGORITHM));
// 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")));
}