aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-10-07 14:54:06 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-10-07 14:54:06 +0200
commit5a73a6b139acbead1771f3a62e1a577c220ca98e (patch)
tree7d808a7b8d567035cffb3e5e5befadf70cd55b63 /src/main
parent1f7f82da7b4e98e76588721d16ebf2b3e42e9084 (diff)
fixed account hash calculation
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/CryptoHelper.java2
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 "";