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])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_params array Configuration parameters.

Méthodes publiques

Méthode 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 méthode

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

decrypt() public méthode

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.
Résultat array The decrypted data.

encrypt() public méthode

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.
Résultat array The encrypted data.

factory() public static méthode

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.
Résultat Horde_Crypt The newly created concrete instance.

Property Details

$_params protected_oe property

Configuration parameters.
protected array $_params
Résultat array