Commit 3d34f49f authored by djamel's avatar djamel

fix la vérif du hash à 8 caractères

parent 53202050
......@@ -149,7 +149,7 @@ public class Read_QR_Code extends ActionBarActivity implements View.OnClickListe
// generate HMAC in hex
String hmac = hmacDigest(str[0]+" "+str[1]+" "+str[2], key.getKey(), "HmacSHA1");
if(str[3].equals(hmac.substring(0, str[3].length()).toUpperCase())) {
if(str[3].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