Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
QR-code-reader
Commits
d1121edc
Commit
d1121edc
authored
Oct 05, 2016
by
djamel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ajout de quelques commentaire
parent
73116ce4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Development/app/src/main/java/djamelfel/gala/Read_QR_Code.java
...opment/app/src/main/java/djamelfel/gala/Read_QR_Code.java
+13
-0
No files found.
Development/app/src/main/java/djamelfel/gala/Read_QR_Code.java
View file @
d1121edc
...
@@ -206,6 +206,12 @@ public class Read_QR_Code extends ActionBarActivity implements View.OnClickListe
...
@@ -206,6 +206,12 @@ public class Read_QR_Code extends ActionBarActivity implements View.OnClickListe
}
}
}
}
/**
*
* @param msg
* @param success
* @info print on screen a message in red if success in false or green if it's true
*/
public
void
display
(
String
msg
,
boolean
success
)
{
public
void
display
(
String
msg
,
boolean
success
)
{
LayoutInflater
inflater
=
getLayoutInflater
();
LayoutInflater
inflater
=
getLayoutInflater
();
View
layout
;
View
layout
;
...
@@ -227,6 +233,13 @@ public class Read_QR_Code extends ActionBarActivity implements View.OnClickListe
...
@@ -227,6 +233,13 @@ public class Read_QR_Code extends ActionBarActivity implements View.OnClickListe
toast
.
show
();
toast
.
show
();
}
}
/**
*
* @param msg
* @param keyString
* @param algo
* @return hmac in hex from a message, a key and an algorithm
*/
public
static
String
hmacDigest
(
String
msg
,
String
keyString
,
String
algo
)
{
public
static
String
hmacDigest
(
String
msg
,
String
keyString
,
String
algo
)
{
String
digest
=
null
;
String
digest
=
null
;
try
{
try
{
...
...
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