summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-12-29 10:31:03 +1100
committerZhao Wei Liew <zhaoweiliew@gmail.com>2016-12-31 14:15:08 +0000
commit3a22b88a268939c01b9d027308d551a5f7930690 (patch)
tree7a4a29d8c5300b266fdb36fa4250d1efe10dbf8a
parent383b5d8e7076a801b60421bdd929d44de074a801 (diff)
downloadpackages_apps_Settings-3a22b88a268939c01b9d027308d551a5f7930690.zip
packages_apps_Settings-3a22b88a268939c01b9d027308d551a5f7930690.tar.gz
packages_apps_Settings-3a22b88a268939c01b9d027308d551a5f7930690.tar.bz2
Settings: CMStats: use sha256 for device IDs
Collions may occur with MD5. Change-Id: Ief2049180084e3cf80229ce1919145625d36a74c
-rw-r--r--src/com/android/settings/cmstats/Utilities.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/cmstats/Utilities.java b/src/com/android/settings/cmstats/Utilities.java
index 1e98888..f69e8ca 100644
--- a/src/com/android/settings/cmstats/Utilities.java
+++ b/src/com/android/settings/cmstats/Utilities.java
@@ -72,7 +72,7 @@ public class Utilities {
public static String digest(String input) {
try {
- MessageDigest md = MessageDigest.getInstance("MD5");
+ MessageDigest md = MessageDigest.getInstance("SHA-256");
return new BigInteger(1, md.digest(input.getBytes())).toString(16).toUpperCase();
} catch (Exception e) {
return null;