$_params
$_params : array
Configuration parameters.
Provides an API for various cryptographic systems used by Horde applications.
factory(string $driver, array $params = array()) : \Horde_Crypt
Attempts to return a concrete Horde_Crypt instance based on $driver.
string | $driver | Either a driver name, or the full class name to use (class must extend Horde_Crypt). |
array | $params | A hash containing any additional configuration or parameters a subclass might need. |
The newly created concrete instance.
encrypt(string $data, array $params = array()) : array
Encrypt the requested data.
This method should be provided by all classes that extend Horde_Crypt.
string | $data | The data to encrypt. |
array | $params | An array of arguments needed to encrypt the data. |
The encrypted data.
decrypt(string $data, array $params = array()) : array
Decrypt the requested data.
This method should be provided by all classes that extend Horde_Crypt.
string | $data | The data to decrypt. |
array | $params | An array of arguments needed to decrypt the data. |
The decrypted data.