diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-10-07 14:54:06 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-10-07 14:54:06 +0200 |
commit | 5a73a6b139acbead1771f3a62e1a577c220ca98e (patch) | |
tree | 7d808a7b8d567035cffb3e5e5befadf70cd55b63 /src/main/java | |
parent | 1f7f82da7b4e98e76588721d16ebf2b3e42e9084 (diff) |
fixed account hash calculation
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/CryptoHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java b/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java index f9d31241..38ebced1 100644 --- a/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/CryptoHelper.java @@ -207,7 +207,7 @@ public final class CryptoHelper { public static String getAccountFingerprint(Account account) { try { - MessageDigest md = MessageDigest.getInstance("SHA256"); + MessageDigest md = MessageDigest.getInstance("SHA-256"); return bytesToHex(md.digest(account.getJid().toBareJid().toString().getBytes("UTF-8"))); } catch (Exception e) { return ""; |