Suppose I have following entry in my known_host file
localhost ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAxZAAJ+Lqtq9Bz6tYX88xAk712moZaE+65LRTTc8jOy/y8c6zmiSaaI5Ip+/k+OjCCA1bgF+yrsmpAdMnzso+bA6BlFmw8SNx8t9+N3boB0xbV8o5kXcdimH0O41n2YjAOvcsFYm8LTIHXGW4dtCx69boTaU2YXtkuKfAE6xUOdk=
Using SSHFTPClient.getValidator().loadKnownHosts("known_host") will load this entry into the known host
...
Hashtable knownHost = sshFTPClient.getValidator().getKnownHosts();
Set<String> set = knownHost.keySet();
Iterator<String> itr = set.iterator();
while (itr.hasNext()) {
String alg = itr.next();
String fingerprint = (String) knownHost.get(alg);
System.out.println(alg + " " + fingerprint);
}
will give me
ssh-rsa 1024: a0 8e 76 b7 c7 14 2e cd 88 d3 ec 45 d7 55 d8 41
Is it possible to get back the fingerprint in original format?, such as:
AAAAB3NzaC1yc2EAAAABIwAAAIEAxZAAJ+Lqtq9Bz6tYX88xAk712moZaE+65LRTTc8jOy/y8c6zmiSaaI5Ip+/k+OjCCA1bgF+yrsmpAdMnzso+bA6BlFmw8SNx8t9+N3boB0xbV8o5kXcdimH0O41n2YjAOvcsFYm8LTIHXGW4dtCx69boTaU2YXtkuKfAE6xUOdk=