Commit 2da4ac59 authored by djamel's avatar djamel

verifie les deux chaines en UPPERCASE

parent 8223fc1f
......@@ -153,7 +153,7 @@ public class Read_QR_Code extends ActionBarActivity implements View.OnClickListe
String hmac = hmacDigest(str[0]+" "+str[1]+" "+str[2] +" "+str[3], key.getKey(),
"HmacSHA1");
if(keyTicket.equals(hmac.substring(0, 8).toUpperCase())) {
if(keyTicket.toUpperCase().equals(hmac.substring(0, 8).toUpperCase())) {
// Ticket is valid
idFound = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment