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 license@zend.com so we can send you a copy immediately.
Encryption adapter for openssl
$_keys = 'array'
Definitions for encryption array( 'public' => public keys 'private' => private keys 'envelope' => resulting envelope keys )
string $_passphrase = ''
Internal passphrase
__construct(
string|array $options
=
array
)
:
Class constructor Available options 'public' => public key 'private' => private key 'envelope' => envelope key 'passphrase' => passphrase
_setKeys(
string|array $keys
)
:
Zend_Filter_Encrypt_Openssl
Sets the encryption keys
decrypt(
string $value
)
:
string
Defined by Zend_Filter_Interface
Decrypts the file $value with the defined settings
encrypt(
string $value
)
:
string
Encrypts the file $value with the defined settings Note that you also need the "encrypted" keys to be able to decrypt
getEnvelopeKey(
)
:
array
Returns all envelope keys
getPassphrase(
)
:
string
Returns the passphrase
getPrivateKey(
)
:
array
Returns all private keys
getPublicKey(
)
:
array
Returns all public keys
setEnvelopeKey(
$key
)
:
Zend_Filter_Encrypt_Openssl
Sets envelope keys
setPassphrase(
string $passphrase
)
:
Zend_Filter_Encrypt_Openssl
Sets a new passphrase
setPrivateKey(
string $key, string $passphrase
=
null
)
:
Zend_Filter_Encrypt_Openssl
Sets private keys
setPublicKey(
string|array $key
)
:
Zend_Filter_Encrypt_Openssl
Sets public keys
toString(
)
:
string
Returns the adapter name