Class Horde_Crypt
The Horde_Crypt:: class provides an API for various cryptographic
systems used by Horde applications.
Copyright 2002-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
Methods summary
public static
Horde_Crypt
|
#
factory( string $driver, array $params = array() )
Attempts to return a concrete Horde_Crypt instance based on $driver.
Attempts to return a concrete Horde_Crypt instance based on $driver.
Parameters
- $driver
- <p>Either a driver name, or the full class name to
use (class must extend Horde_Crypt).</p>
- $params
- <p>A hash containing any additional configuration
or parameters a subclass might need.</p>
Returns
Throws
|
public
|
#
__construct( array $params = array() )
Constructor.
Parameters
- $params
- Configuration parameters:
<pre>email_charset - (string) The <span class="php-keyword1">default</span> email charset.
<span class="php-keyword1">DEFAULT</span>: NONE
temp - (string) [REQUIRED] Location of temporary directory.</pre>
Throws
InvalidArgumentException
|
public
array
|
#
encrypt( string $data, array $params = array() )
Encrypt the requested data.
This method should be provided by all classes that extend Horde_Crypt.
Encrypt the requested data.
This method should be provided by all classes that extend Horde_Crypt.
Parameters
- $data
- The data to encrypt.
- $params
- An array of arguments needed to encrypt the data.
Returns
array The encrypted data.
|
public
array
|
#
decrypt( string $data, array $params = array() )
Decrypt the requested data.
This method should be provided by all classes that extend Horde_Crypt.
Decrypt the requested data.
This method should be provided by all classes that extend Horde_Crypt.
Parameters
- $data
- The data to decrypt.
- $params
- An array of arguments needed to decrypt the data.
Returns
array The decrypted data.
Throws
|