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.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 23 of file Obfuscator.php.

Public Member Functions

 __construct (Session $session)
 
 obfuscate ($str)
 
 unveil ($str)
 

Constructor & Destructor Documentation

__construct ( Session  $session)

Constructor.

Parameters
$session

Definition at line 34 of file Obfuscator.php.

Member Function Documentation

obfuscate (   $str)

Get an obfuscated string.

Parameters
$strThe original sring
Returns
The obfuscated string

Definition at line 43 of file Obfuscator.php.

unveil (   $str)

Get an unveiled string.

Parameters
$strThe obfuscated sring
Returns
The original string or an empty string if it does not exist

Definition at line 63 of file Obfuscator.php.