From 5a73a6b139acbead1771f3a62e1a577c220ca98e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 7 Oct 2016 14:54:06 +0200 Subject: fixed account hash calculation --- src/main/java/eu/siacs/conversations/utils/CryptoHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ""; -- cgit v1.2.3