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

Parameters

string $comment

static array load(string $key, string $password)

Break a public or private key down into its constituent components

Parameters

string $key
string $password

Return Value

array

static protected string wrapPrivateKey(string $public, string $private, string $type, string $password, array $options = [])

Wrap a private key appropriately

Parameters

string $public
string $private
string $type
string $password
array $options optional

Return Value

string

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)

Parameters

string $key
string $type

Return Value

string