class Crypt
This class provides a simple interface to the mcrypt library. It can be used to encrypt and decrypt data. mcrypt was chosen because it supports a wide variety of block algorithms and cipher modes. For a complete list of supported algorithms and modes refer to the documentation of mcrypt.
Located in /crypt.class.php (line 21)
Exception | --PException | --Crypt
function __construct
This method is executed when an object is instantiated from this class. Preprocessing can be done here before the object is put into service.
function CloseModule
This method closes the mcrypt module.
function Decrypt
This method initializes all buffers needed for decryption, decrypts data and deinitializes a decryption module.
function Encrypt
This method initializes all buffers needed for encryption, encrypts data and deinitializes an encryption module.
function GetBlockSize
This method retrieves the blocksize of the opened algorithm.
function GetInstance
This method instantiates a new object from this class; more specifically, it's a singleton instance.
function GetIvSize
This method retrieves the size of the Initialization Vector (IV) belonging to a specific cipher/mode combination.
function GetKeySize
This method retrieves the maximum supported key size of the opened mode.
function GetRandomIv
This method retrieves the Initialization Vector (IV) from a registered session.
function OpenModule
This method opens the module of the algorithm and the mode to be used.
function SetEncryptionKey
This method creates a encryption key according to the maximum supported key size of the opened mode and stores it in the XML configuration file.
function SetRandomIv
This method creates the Initialization Vector (IV) from a random source and stores it in a registered session.
Inherited From PException
PException::Display()
Documentation generated on Thu, 9 Sep 2004 09:03:34 -0400 by phpDocumentor 1.3.0RC3