[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
Fingerprint Trait for Public Keys PHP version 5
Author: | Jim Wigginton |
Copyright: | 2015 Jim Wigginton |
License: | http://www.opensource.org/licenses/mit-license.html MIT License |
Link: | http://phpseclib.sourceforge.net |
File Size: | 57 lines (2 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
getFingerprint($algorithm = 'md5') X-Ref |
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) return: mixed param: string $algorithm The hashing algorithm to be used. Valid options are 'md5' and 'sha256'. False is returned |