fixed account hash calculation
This commit is contained in:
parent
1f7f82da7b
commit
5a73a6b139
|
@ -207,7 +207,7 @@ public final class CryptoHelper {
|
||||||
|
|
||||||
public static String getAccountFingerprint(Account account) {
|
public static String getAccountFingerprint(Account account) {
|
||||||
try {
|
try {
|
||||||
MessageDigest md = MessageDigest.getInstance("SHA256");
|
MessageDigest md = MessageDigest.getInstance("SHA-256");
|
||||||
return bytesToHex(md.digest(account.getJid().toBareJid().toString().getBytes("UTF-8")));
|
return bytesToHex(md.digest(account.getJid().toBareJid().toString().getBytes("UTF-8")));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return "";
|
return "";
|
||||||
|
|
Loading…
Reference in a new issue