PHP Class phpseclib\Crypt\RSA\Raw

Author: Jim Wigginton ([email protected])
Show file Open project: phpseclib/phpseclib

Public Methods

Method Description
load ( string $key, string $password = '' ) : array Break a public or private key down into its constituent components
savePublicKey ( phpseclib\Math\BigInteger $n, phpseclib\Math\BigInteger $e ) : string Convert a public key to the appropriate format

Method Details

load() static public method

Break a public or private key down into its constituent components
static public load ( string $key, string $password = '' ) : array
$key string
$password string optional
return array

savePublicKey() static public method

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
return string