PHP Класс 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.
Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_params array Configuration parameters.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

decrypt() публичный Метод

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.
Результат array The decrypted data.

encrypt() публичный Метод

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.
Результат array The encrypted data.

factory() публичный статический Метод

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.
Результат Horde_Crypt The newly created concrete instance.

Описание свойств

$_params защищенное свойство

Configuration parameters.
protected array $_params
Результат array