[ Index ] |
PHP Cross Reference of DokuWiki |
[Source view] [Print] [Project Stats]
OpenSSH Key Handler 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: | 220 lines (8 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
setComment($comment) X-Ref |
Sets the default comment param: string $comment |
load($key, $password = '') X-Ref |
Break a public or private key down into its constituent components $type can be either ssh-dss or ssh-rsa return: array param: string $key param: string $password |
setBinaryOutput($enabled) X-Ref |
Toggle between binary and printable keys Printable keys are what are generated by default. These are the ones that go in $HOME/.ssh/authorized_key. param: bool $enabled |
checkType($candidate) X-Ref |
Checks to see if the type is valid param: string $candidate |
wrapPrivateKey($publicKey, $privateKey, $password, $options) X-Ref |
Wrap a private key appropriately return: string param: string $publicKey param: string $privateKey param: string $password param: array $options |