Download the PHP package codeaken/sshkey without Composer
On this page you can find all versions of the php package codeaken/sshkey. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package sshkey
SshKey
This library allows you to work with public and private keys in PHP.
- Read keys both from a file and from other sources like a database
- Convert between key formats
- Get a public keys fingerprint
- Generate new key-pairs
It depends on phpseclib for all of the key manipulation.
Installation
Require the package in your composer.json and then run composer update
"require": {
...
"codeaken/sshkey": "1.*"
...
},
Usage
These examples makes the following assumptions:
- The library is autoloaded, for example by having included
vendor/autoload.php
somewhere in your project - You have a a key-pair in your current directory called
id_rsa
(private) andid_rsa.pub
(public). The private key is not encrypted. - An encrypted private key in your current directory called
id_encrypted_rsa
protected by the passwordabc123
Read a key from a file
Read a key from a non file source
Get a public keys fingerprint and comment
Generate a new keypair
Save a key to a file
License
SshKey is licensed under the MIT License.
Copyright 2014 Magnus Johansson
All versions of sshkey with dependencies
PHP Build Version
Package Version
The package codeaken/sshkey contains the following files
Loading the files please wait ....