Methods
Constructor
__construct(string $pemString, string $passPhrase)
Parameters
$pemString
string
$passPhrase
string
Exceptions
__toString()
__toString() : string
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::__toString() |
Returns
string
Decrypt using this key
decrypt(string $data) : string
Parameters
$data
string
Exceptions
Returns
string
Encrypt using this key
encrypt(string $data) : string
Parameters
$data
string
Exceptions
Returns
string
Create private key instance from PEM formatted key file
fromFile(string $pemFile, string | null $passPhrase) : \Zend\Crypt\PublicKey\Rsa\PrivateKey
Parameters
$pemFile
string
$passPhrase
stringnull
Exceptions
Returns
Retrieve openssl key resource
getOpensslKeyResource() : resource
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::getOpensslKeyResource() |
Returns
resource
Get key size in bits
getSize() : int
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::getSize() |
Returns
int
Get string representation of this key
toString() : string
Properties
Openssl details array
$details : array
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::$$details |
Key Resource
$opensslKeyResource : resource
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::$$opensslKeyResource |
PEM formatted key
$pemString : string
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::$$pemString |
Constants
DEFAULT_KEY_SIZE
DEFAULT_KEY_SIZE
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::DEFAULT_KEY_SIZE |