Can I change the default hash algorithm for SSH key fingerprints?

Yes but this requires J2SSH Maverick 1.4.41 or Maverick SSHD 1.4.39

Just call the static method:

SshKeyFingerprint.setDefaultHashAlgorithm(SshKeyFingerprint.SHA1_FINGERPRINT);

The available algorithms are

SshKeyFingerprint.MD5_FINGERPRINT (this is the default as defined in RFC 4716)

SshKeyFingerprint.SHA1_FINGERPRINT

SshKeyFingerprint.SHA256_FINGERPRINT

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.