|
XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |||||
__construct() | |||||
Configure the new object, setting the mode and key. public
| |||||
| __construct ($mode=null, $key=null) | |||||
__toString() | |||||
Overload of the object conversion to string. public void
| |||||
| __toString () | |||||
__set() | |||||
Properties write methods.
| |||||
| __set ($property, $value) | |||||
__get() | |||||
Properties read methods.
| |||||
| __get ($property) | |||||
encrypt() | |||||
Encrypt the data using the current returning mode. public
| |||||
| encrypt ($data) | |||||
decrypt() | |||||
Decrypt the data using the current returning mode. NOTE: You must use the same $_mode of the creation process. public
| |||||
| decrypt ($crypt) | |||||
Static Public Member Functions | |||
supportedModes() | |||
Return the list containing all supported modes. public
| |||
| static | supportedModes () | ||
_isSupportedMode() | |||
Checks if $mode is a valid returning mode of the class. public
| |||
| static | _isSupportedMode ($mode) | ||
Public Attributes | |
| const | MODE_B64 = 1 |
| const | MODE_BIN = 0 |
| const | MODE_HEX = 2 |
Protected Member Functions | |||
_setMode() | |||
Set the current returning mode of the class. protected
| |||
| _setKey ($key) | |||
| _setMode ($mode) | |||
_encodeHexadecimal() | |||
Encode the data using hexadecimal chars. protected
| |||
| _encodeHexadecimal ($data) | |||
_decodeHexadecimal() | |||
Decode hexadecimal strings. protected
| |||
| _decodeHexadecimal ($hexcrypt) | |||
Private Attributes | |
$_key | |
The private key used in the cryptography method. NOTE: This value should be as strange as possible. private | |
| $_key = __CLASS__ | |
$_mode | |
The returning mode of the cryptography method. private | |
| $_mode = Crypt::MODE_HEX | |
| Crypt::__set | ( | $property, | |
| $value | |||
| ) |
Definition at line 101 of file crypt.php.
References _setKey(), and _setMode().

|
protected |
|
protected |
|
static |
Definition at line 200 of file crypt.php.
References supportedModes().
Referenced by _setMode().


|
protected |
|
protected |
Definition at line 230 of file crypt.php.
References _isSupportedMode().
Referenced by __set().


| Crypt::decrypt | ( | $crypt | ) |
| Crypt::encrypt | ( | $data | ) |
|
static |
|
private |
| const Crypt::MODE_B64 = 1 |
Definition at line 28 of file crypt.php.
Referenced by decrypt(), encrypt(), and supportedModes().
| const Crypt::MODE_BIN = 0 |
Definition at line 27 of file crypt.php.
Referenced by supportedModes().
| const Crypt::MODE_HEX = 2 |
Definition at line 29 of file crypt.php.
Referenced by decrypt(), TextCleaner\decrypt(), encrypt(), TextCleaner\encrypt(), and supportedModes().