function EnDeCrypt ($value) { $Result = $value; for ($CharIndex=0; $CharIndex <= strlen($value) - 1; $CharIndex ++) { $Result[$CharIndex] = Chr(not(Ord($value[$CharIndex]))); } return $Result; }