mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-31 11:34:21 +01:00
Improve SignalServiceAddress handling
This commit is contained in:
@@ -257,6 +257,8 @@ class Utils {
|
||||
}
|
||||
|
||||
static String computeSafetyNumber(String ownUsername, IdentityKey ownIdentityKey, String theirUsername, IdentityKey theirIdentityKey) {
|
||||
// Version 1: E164 user
|
||||
// Version 2: UUID user
|
||||
Fingerprint fingerprint = new NumericFingerprintGenerator(5200).createFor(1, ownUsername.getBytes(), ownIdentityKey, theirUsername.getBytes(), theirIdentityKey);
|
||||
return fingerprint.getDisplayableFingerprint().getDisplayText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user