diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-06-24 09:31:13 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-06-24 09:31:13 +0200 |
commit | 5bc4094ff4a9fe25d458ade55ae1019cb87eeab8 (patch) | |
tree | 88c3b6e3c12cd221489938d8b3b209bba4f4bd83 /src/main/java/de/pixart/messenger/utils | |
parent | 2d90918664e194b9cdcabb03fd15ea0fedc1e083 (diff) |
upgrade to signal-protocol-java
Diffstat (limited to 'src/main/java/de/pixart/messenger/utils')
-rw-r--r-- | src/main/java/de/pixart/messenger/utils/CryptoHelper.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/CryptoHelper.java b/src/main/java/de/pixart/messenger/utils/CryptoHelper.java index d15f4bef5..44e89d8fc 100644 --- a/src/main/java/de/pixart/messenger/utils/CryptoHelper.java +++ b/src/main/java/de/pixart/messenger/utils/CryptoHelper.java @@ -22,7 +22,6 @@ import java.util.Collection; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; -import java.util.Locale; import java.util.regex.Pattern; import de.pixart.messenger.Config; @@ -103,7 +102,7 @@ public final class CryptoHelper { } else if (fingerprint.length() < 40) { return fingerprint; } - StringBuilder builder = new StringBuilder(fingerprint.toLowerCase(Locale.US).replaceAll("\\s", "")); + StringBuilder builder = new StringBuilder(fingerprint); for (int i = 8; i < builder.length(); i += 9) { builder.insert(i, ' '); } |