Improved import with preview of keyrings

This commit is contained in:
Dominik Schürmann
2013-01-08 17:01:45 +01:00
parent 6cc7156fbd
commit 68039d3a8a
17 changed files with 451 additions and 183 deletions

View File

@@ -351,7 +351,7 @@ public class PGPHelper {
return algorithmStr + ", " + keySize + "bit";
}
public static String convertToHex(byte[] fp) {
public static String convertFingerprintToHex(byte[] fp) {
String fingerPrint = "";
for (int i = 0; i < fp.length; ++i) {
if (i != 0 && i % 10 == 0) {
@@ -382,7 +382,7 @@ public class PGPHelper {
key = secretKey.getPublicKey();
}
return convertToHex(key.getFingerprint());
return convertFingerprintToHex(key.getFingerprint());
}
public static String getSmallFingerPrint(long keyId) {