diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-17 21:12:34 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-17 21:12:34 +0200 |
commit | b245b8af5cd903c70d34841d7e871d5bfb4067fb (patch) | |
tree | 431173a75154337ee9a850d245bb700e8913b698 /src/main/java/de/pixart/messenger/utils/CryptoHelper.java | |
parent | a68be2f67ea5472dd17611e4cd4a4acf6acdef5f (diff) |
changed jid of push server
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/CryptoHelper.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/CryptoHelper.java b/src/main/java/de/pixart/messenger/utils/CryptoHelper.java index 8cb68b34d..2327f6f96 100644 --- a/src/main/java/de/pixart/messenger/utils/CryptoHelper.java +++ b/src/main/java/de/pixart/messenger/utils/CryptoHelper.java @@ -222,13 +222,13 @@ public final class CryptoHelper { return prettifyFingerprintCert(bytesToHex(fingerprint)); } - public static String getAccountFingerprint(Account account) { - return getFingerprint(account.getJid().asBareJid().toString()); + public static String getAccountFingerprint(Account account, String androidId) { + return getFingerprint(account.getJid().asBareJid().toEscapedString() + "\00" + androidId); } public static String getFingerprint(String value) { try { - MessageDigest md = MessageDigest.getInstance("SHA-256"); + MessageDigest md = MessageDigest.getInstance("SHA-1"); return bytesToHex(md.digest(value.getBytes("UTF-8"))); } catch (Exception e) { return ""; |