Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
QR-code-reader
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
QR-code-reader
Commits
3d34f49f
Commit
3d34f49f
authored
Oct 06, 2016
by
djamel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix la vérif du hash à 8 caractères
parent
53202050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Development/app/src/main/java/djamelfel/gala/Read_QR_Code.java
...opment/app/src/main/java/djamelfel/gala/Read_QR_Code.java
+1
-1
No files found.
Development/app/src/main/java/djamelfel/gala/Read_QR_Code.java
View file @
3d34f49f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment