[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 164 lignes (6 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
Horde_Crypt:: (6 méthodes):
factory()
singleton()
requireSecureConnection()
encrypt()
decrypt()
_createTempFile()
Classe: Horde_Crypt - X-Ref
The Horde_Crypt:: class provides an API for various cryptographicfactory($driver, $params = array() X-Ref |
Attempts to return a concrete Horde_Crypt instance based on $driver. param: mixed $driver The type of concrete Horde_Crypt subclass to param: array $params A hash containing any additional configuration or return: Horde_Crypt The newly created concrete Horde_Crypt instance, or |
singleton($driver, $params = array() X-Ref |
Attempts to return a reference to a concrete Horde_Crypt instance based on $driver. It will only create a new instance if no Horde_Crypt instance with the same parameters currently exists. This should be used if multiple crypto backends (and, thus, multiple Horde_Crypt instances) are required. This method must be invoked as: $var = &Horde_Crypt::singleton() param: mixed $driver The type of concrete Horde_Crypt subclass to param: array $params A hash containing any additional configuration or return: Horde_Crypt The concrete Horde_Crypt reference, or false on an |
requireSecureConnection() X-Ref |
Outputs error message if we are not using a secure connection. return: PEAR_Error Returns a PEAR_Error object if there is no secure |
encrypt($data, $params = array() X-Ref |
Encrypt the requested data. This method should be provided by all classes that extend Horde_Crypt. param: string $data The data to encrypt. param: array $params An array of arguments needed to encrypt the data. return: array The encrypted data. |
decrypt($data, $params = array() X-Ref |
Decrypt the requested data. This method should be provided by all classes that extend Horde_Crypt. param: string $data The data to decrypt. param: array $params An array of arguments needed to decrypt the data. return: array The decrypted data. |
_createTempFile($descrip = 'horde-crypt', $delete = true) X-Ref |
Create a temporary file that will be deleted at the end of this process. param: string $descrip Description string to use in filename. param: boolean $delete Delete the file automatically? return: string Filename of a temporary file. |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |