1594. Class

1594.1. Zend\Crypt\PublicKey\Rsa\PrivateKey

RSA private key

1594.1.1. Methods

1594.1.1.1. fromFile

fromFile()

Create private key instance from PEM formatted key file

Parameters:
  • string
  • string|null
Return type:

PrivateKey

Throws :

ExceptionInvalidArgumentException

1594.1.1.2. __construct

__construct()

Constructor

Parameters:
  • string
  • string
Throws ExceptionRuntimeException:
 

1594.1.1.3. getPublicKey

getPublicKey()

Get the public key

Return type:PublicKey

1594.1.1.4. encrypt

encrypt()

Encrypt using this key

Parameters:string
Return type:string
Throws :ExceptionRuntimeException
Throws :ExceptionInvalidArgumentException

1594.1.1.5. decrypt

decrypt()

Decrypt using this key

Parameters:string
Return type:string
Throws :ExceptionRuntimeException
Throws :ExceptionInvalidArgumentException

1594.1.1.6. toString

toString()

@return string

Project Versions

Table Of Contents

Previous topic

1593. Class

Next topic

1595. Class

This Page