PHP Class Horde_Crypt, horde

Copyright 2002-2014 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.
Author: Michael Slusarz ([email protected])
Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_params array Configuration parameters.

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.
decrypt ( string $data, array $params = [] ) : array Decrypt the requested data.
encrypt ( string $data, array $params = [] ) : array Encrypt the requested data.
factory ( string $driver, array $params = [] ) : Horde_Crypt Attempts to return a concrete Horde_Crypt instance based on $driver.

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Configuration parameters: - email_charset: (string) The default email charset.

decrypt() public method

This method should be provided by all classes that extend Horde_Crypt.
public decrypt ( string $data, array $params = [] ) : array
$data string The data to decrypt.
$params array An array of arguments needed to decrypt the data.
return array The decrypted data.

encrypt() public method

This method should be provided by all classes that extend Horde_Crypt.
public encrypt ( string $data, array $params = [] ) : array
$data string The data to encrypt.
$params array An array of arguments needed to encrypt the data.
return array The encrypted data.

factory() public static method

Attempts to return a concrete Horde_Crypt instance based on $driver.
public static factory ( string $driver, array $params = [] ) : Horde_Crypt
$driver string Either a driver name, or the full class name to use (class must extend Horde_Crypt).
$params array A hash containing any additional configuration or parameters a subclass might need.
return Horde_Crypt The newly created concrete instance.

Property Details

$_params protected_oe property

Configuration parameters.
protected array $_params
return array