PuTTY
abstract class PuTTY extends PuTTY (View source)
PuTTY Formatted RSA Key Handler
Constants
PUBLIC_HANDLER |
Public Handler |
Properties
static protected array | $types | Algorithm Identifier |
Methods
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
from
PuTTY
static string
savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array $primes, array $exponents, array $coefficients, string $password = '', array $options = [])
Convert a private key to the appropriate format.
static string
Details
in
PuTTY at line 49
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
in
PuTTY at line 201
static protected string
wrapPrivateKey(string $public, string $private, string $type, string $password, array $options = [])
Wrap a private key appropriately
in
PuTTY at line 252
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)
static string
savePrivateKey(BigInteger $n, BigInteger $e, BigInteger $d, array $primes, array $exponents, array $coefficients, string $password = '', array $options = [])
Convert a private key to the appropriate format.
static string
savePublicKey(BigInteger $n, BigInteger $e)
Convert a public key to the appropriate format