Security

Filepath: phork/php/utilities/Security.class.php

The security class is used to encrypt and decrypt strings. Currently it just uses a simple substitution cipher based on the $arrConfig['EncryptInput'] and $arrConfig['EncryptOutput'] subsitution configuration in the global configuration file. In the future this will be swapped out for real encryption.


Example

$strOriginal = 'foobar';
$strEncrypted = Security::encrypt($strOriginal);
$strDecrypyed = Security::decrypt($strEncrypted);