Skip to content

Commit

Permalink
Merge pull request #7 from SandroMachado/bugfix/get-certificate-signa…
Browse files Browse the repository at this point in the history
…ture

Fix get certificate signature method
  • Loading branch information
SandroMachado committed Feb 27, 2016
2 parents 0d99ee1 + 1450f84 commit 7638fc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ AndroidTamperingProtectionUtils.getCertificateSignature(context);

Check your logcat for something like:
```
01-12 01:16:15.965 32487-32487/com.sandro.test D/TAMPERING_PROTECTION: ___________
yweraaaaaaaaggggDfsa6egkjjI=
___________
01-12 01:16:15.965 32487-32487/com.sandro.test D/TAMPERING_PROTECTION:**yweraaaaaaaaggggDfsa6egkjjI=
**
```
Please note that this certificate signature contains a `\n` at the end.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static void getCertificateSignature(Context context) {

md.update(signature.toByteArray());

Log.d("TAMPERING_PROTECTION", "\n\n___________\n" + Base64.encodeToString(md.digest(), Base64.DEFAULT) + "\n___________\n\n");
Log.d("TAMPERING_PROTECTION", "**" + Base64.encodeToString(md.digest(), Base64.DEFAULT) + "**");
}
} catch (Exception exception) {
Log.d("TAMPERING_PROTECTION", exception.getStackTrace().toString());
Expand Down

0 comments on commit 7638fc6

Please sign in to comment.