aboutsummaryrefslogtreecommitdiffstats
path: root/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--context.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index d7a17a1..7ba5fb9 100644
--- a/context.cpp
+++ b/context.cpp
@@ -649,6 +649,15 @@ int Context::textIsSigned(const QByteArray &text) {
return 0;
}
+QString Context::beautifyFingerprint(QString fingerprint)
+{
+ uint len = fingerprint.length();
+ if ((len > 0) && (len % 4 == 0))
+ for (uint n = 0; 4 *(n + 1) < len; ++n)
+ fingerprint.insert(5 * n + 4, ' ');
+ return fingerprint;
+}
+
}