*/
public static String getFingerPrint(PublicKey key) {
try {
Buffer buffer = new Buffer();
buffer.putRawPublicKey(key);
MD5 md5 = new MD5();
md5.init();
md5.update(buffer.array(), 0, buffer.wpos());
byte[] data = md5.digest();
return BufferUtils.printHex(data, 0, data.length, ':');
} catch (Exception e) {
return "Unable to compute fingerprint";
}
}