crypto

crypto is a wrapper class that wraps several of the mcrypt extension functions to make encrypting and decrypting easier.


Static Methods

string $encryptedString encrypt( string $clearText; [array|mixed $overrideSettings] )
Encrypt a string using the settings specified either in the iPinga application object or using the settings provided in $overrideSettings
Parameters:
$clearText (string) the string you want to encrypt
$overrideSettings (optional: array|mixed) settings you wish to use for this encryption process.
Returns:
$encryptedString (string) is the encrypted value of the string you passed in as $clearText
Example:
string $clearText decrypt( string $encryptedString; [array|mixed $overrideSettings] )
Decrypt a string using the settings specified either in the iPinga application object or using the settings provided in $overrideSettings.
Parameters:
$encryptedString (string) is the encrypted value to decrypt
$overrideSettings (optional: array|mixed) settings you wish to use for this encryption process.
Returns:
$clearText (string) the decrypted string
Example: