Source API for the «PortePlugins_Crypt» class
Plugin to store crypted content into the database.
Public static methods
- register
-
Register the plugin with a Porte instance.
- _modelPropertyBefore
-
This method is not yet documented.
- encrypt
-
Encryp the value with the AES 128 algorythm and convert it into an hexadecimal representation.
The result is Mysql compatible with the following statement:
HEX(AES_ENCRYPT($value))Convert into an hexadecimal representation and crypt AES 128 compatible mysql HEX(AES_ENCRYPT()) of a srting value
-
- return
- string
- The string in hexadecimal
- $value
- string, The
- string to crypt
- $key
- string, The
- key for crypt
- decrypt
-
Decrypt an AES 128 encoding value stored as an hexadecimal representation into a string.
-
- return
- string
- The converted string
- $hexValue
- string, The
- string to crypt
- $key
- string, The
- key for crypt