PuTTY
abstract class PuTTY (View source)
PuTTY Formatted Key Handler
Methods
static
setComment(string $comment)
Sets the default comment
static array
load(string $key, string $password)
Break a public or private key down into its constituent components
static string
wrapPrivateKey(string $public, string $private, string $type, string $password, array $options = [])
Wrap a private key appropriately
static string
wrapPublicKey(string $key, string $type)
Wrap a public key appropriately
Details
static
setComment(string $comment)
Sets the default comment
static array
load(string $key, string $password)
Break a public or private key down into its constituent components
static protected string
wrapPrivateKey(string $public, string $private, string $type, string $password, array $options = [])
Wrap a private key appropriately
static protected string
wrapPublicKey(string $key, string $type)
Wrap a public key appropriately
This is basically the format described in RFC 4716 (https://tools.ietf.org/html/rfc4716)