PHP Класс phpseclib\Crypt\RSA\PuTTY

Автор: Jim Wigginton ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$comment string Default comment

Открытые методы

Метод Описание
generateSymmetricKey ( string $password, integer $length ) : string Generate a symmetric key for PuTTY keys
load ( string $key, string $password = '' ) : array Break a public or private key down into its constituent components
savePrivateKey ( phpseclib\Math\BigInteger $n, phpseclib\Math\BigInteger $e, phpseclib\Math\BigInteger $d, array $primes, array $exponents, array $coefficients, string $password = '' ) : string Convert a private key to the appropriate format.
savePublicKey ( phpseclib\Math\BigInteger $n, phpseclib\Math\BigInteger $e ) : string Convert a public key to the appropriate format
setComment ( string $comment ) Sets the default comment

Описание методов

generateSymmetricKey() статический публичный Метод

Generate a symmetric key for PuTTY keys
static public generateSymmetricKey ( string $password, integer $length ) : string
$password string
$length integer
Результат string

load() статический публичный Метод

Break a public or private key down into its constituent components
static public load ( string $key, string $password = '' ) : array
$key string
$password string optional
Результат array

savePrivateKey() статический публичный Метод

Convert a private key to the appropriate format.
static public savePrivateKey ( phpseclib\Math\BigInteger $n, phpseclib\Math\BigInteger $e, phpseclib\Math\BigInteger $d, array $primes, array $exponents, array $coefficients, string $password = '' ) : string
$n phpseclib\Math\BigInteger
$e phpseclib\Math\BigInteger
$d phpseclib\Math\BigInteger
$primes array
$exponents array
$coefficients array
$password string optional
Результат string

savePublicKey() статический публичный Метод

Convert a public key to the appropriate format
static public savePublicKey ( phpseclib\Math\BigInteger $n, phpseclib\Math\BigInteger $e ) : string
$n phpseclib\Math\BigInteger
$e phpseclib\Math\BigInteger
Результат string

setComment() статический публичный Метод

Sets the default comment
static public setComment ( string $comment )
$comment string

Описание свойств

$comment статическое публичное свойство

Default comment
static public string $comment
Результат string