PHP Class ParagonIE\EasyRSA\KeyPair

Datei anzeigen Open project: paragonie/easyrsa Class Usage Examples

Protected Properties

Property Type Description
$publicKey

Public Methods

Method Description
__construct ( PrivateKey $privateKey, PublicKey $publicKey = null )
generateKeyPair ( integer $size = 2048 ) : self Generate a private/public RSA key pair
getPrivateKey ( ) : PrivateKey
getPublicKey ( ) : PublicKey

Method Details

__construct() public method

public __construct ( PrivateKey $privateKey, PublicKey $publicKey = null )
$privateKey PrivateKey
$publicKey PublicKey

generateKeyPair() public static method

Generate a private/public RSA key pair
public static generateKeyPair ( integer $size = 2048 ) : self
$size integer Key size
return self

getPrivateKey() public method

public getPrivateKey ( ) : PrivateKey
return PrivateKey

getPublicKey() public method

public getPublicKey ( ) : PublicKey
return PublicKey

Property Details

$publicKey protected_oe property

protected $publicKey