Fingerprint
trait Fingerprint (View source)
Fingerprint Trait for Private Keys
Methods
mixed
getFingerprint(string $algorithm = 'md5')
Returns the public key's fingerprint
Details
mixed
getFingerprint(string $algorithm = 'md5')
Returns the public key's fingerprint
The public key's fingerprint is returned, which is equivalent to running ssh-keygen -lf rsa.pub
. If there is
no public key currently loaded, false is returned.
Example output (md5): "c1:b1:30:29:d7:b8:de:6c:97:77:10:d7:46:41:63:87" (as specified by RFC 4716)