/** * Decrypt the value when reading from the database */ public function FromSQLToValue($aCols, $sPrefix = '') { $oSimpleCrypt = new SimpleCrypt(); $sValue = $oSimpleCrypt->Decrypt(self::$sKey, $aCols[$sPrefix]); return $sValue; }