RSA public key

category Zend
package Zend_Crypt
subpackage PublicKey

 Methods

Construct public key with PEM formatted string or X.509 certificate

__construct(string $pemStringOrCertificate) 

Parameters

$pemStringOrCertificate

string

Exceptions

\Zend\Crypt\PublicKey\Rsa\Exception\RuntimeException

__toString()

__toString() : string
Inherited

inherited_from \Zend\Crypt\PublicKey\Rsa\AbstractKey::__toString()

Returns

string

Decrypt using this key

decrypt(string $data) : string

Encrypt using this key

encrypt(string $data) : string

Create public key instance public key from PEM formatted key file or X.509 certificate file

fromFile(string $pemOrCertificateFile) : \Zend\Crypt\PublicKey\Rsa\PublicKey

Get certificate string

getCertificate() : string

Returns

string

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

To string

toString() : string

 Properties

 

$certificateString

$certificateString : string

 

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

 

CERT_START

CERT_START 

 

DEFAULT_KEY_SIZE

DEFAULT_KEY_SIZE 
Inherited

inherited_from \Zend\Crypt\PublicKey\Rsa\AbstractKey::DEFAULT_KEY_SIZE