Obfuscator Class Reference
Detailed Description
Obfuscator allows to obfuscate strings.
By passing an objuscated string to the method Obfuscator::unveil() the orginal string is returned. This is especially useful, if you want to place a secret string inside a client view as a parameter and want to get the original string back as the request is processed.
Definition at line 23 of file Obfuscator.php.
Public Member Functions | |
| __construct (Session $session) | |
| obfuscate ($str) | |
| unveil ($str) | |
Constructor & Destructor Documentation
| __construct | ( | Session | $session | ) |
Member Function Documentation
| obfuscate | ( | $str | ) |
Get an obfuscated string.
- Parameters
-
$str The original sring
- Returns
- The obfuscated string
Definition at line 43 of file Obfuscator.php.
| unveil | ( | $str | ) |
Get an unveiled string.
- Parameters
-
$str The obfuscated sring
- Returns
- The original string or an empty string if it does not exist
Definition at line 63 of file Obfuscator.php.