fixed account hash calculation

This commit is contained in:
Daniel Gultsch 2016-10-07 14:54:06 +02:00
parent 1f7f82da7b
commit 5a73a6b139
1 changed files with 1 additions and 1 deletions

View File

@ -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 "";