Crypt/Rsa.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Crypt
- Subpackage
- Rsa
- Version
- $Id: Rsa.php 24808 2012-05-17 19:56:09Z rob $
\Zend_Crypt_Rsa
Package: Zend\Crypt
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods


__construct(array $options = null) : void
Class constructor
Parameters
Throws
Name | Type | Description |
---|---|---|
$options | array |
Exception | Description |
---|---|
\Zend_Crypt_Rsa_Exception |


decrypt(string $data, \Zend_Crypt_Rsa_Key $key, string $format = null) : string
Parameters
Returns
Name | Type | Description |
---|---|---|
$data | string | |
$key | \Zend_Crypt_Rsa_Key | |
$format | string |
Type | Description |
---|---|
string |


encrypt(string $data, \Zend_Crypt_Rsa_Key $key, string $format = null) : string
Parameters
Returns
Name | Type | Description |
---|---|---|
$data | string | |
$key | \Zend_Crypt_Rsa_Key | |
$format | string |
Type | Description |
---|---|
string |


generateKeys(array $configargs = null) : \ArrayObject
Parameters
Returns
Throws
Name | Type | Description |
---|---|---|
$configargs | array |
Type | Description |
---|---|
\ArrayObject |
Exception | Description |
---|---|
\Zend_Crypt_Rsa_Exception |


sign(string $data, \Zend_Crypt_Rsa_Key_Private $privateKey = null, string $format = null) : string
Parameters
Returns
Name | Type | Description |
---|---|---|
$data | string | |
$privateKey | \Zend_Crypt_Rsa_Key_Private | |
$format | string |
Type | Description |
---|---|
string |