function decryptSimple($data) {
		$result = '';
		$data=base64_decode(str_replace(array('-', '_'),array('+', '/'),$data));
		for($i=0; $i<strlen($data); $i++) {
			$char = substr($data, $i, 1);
			$keychar = substr($this->encPassword, ($i % strlen($this->encPassword))-1, 1);
			$char = chr(ord($char)-ord($keychar));
			$result.=$char;
		}
		return $result;
	}
function decryptSimple($data) {
		$result = '';
		$data=base64_decode(str_replace(array('-', '_'),array('+', '/'),$data));
		for($i=0; $i<strlen($data); $i++) {
			$char = substr($data, $i, 1);
			$keychar = substr($this->encPassword, ($i % strlen($this->encPassword))-1, 1);
			$char = chr(ord($char)-ord($keychar));
			$result.=$char;
		}
		return $result;
	}
function decryptSimple ( $ data ) { $ result = '' ; $ data = base64_decode ( str_replace ( array ( '-' , '_' ) , array ( '+' , '/' ) , $ data ) ) ; for ( $ i = 0 ; $ i < strlen ( $ data ) ; $ i ++ ) { $ char = substr ( $ data , $ i , 1 ) ; $ keychar = substr ( $ this -> encPassword , ( $ i % strlen ( $ this -> encPassword ) ) - 1 , 1 ) ; $ char = chr ( ord ( $ char ) - ord ( $ keychar ) ) ; $ result .= $ char ; } return $ result ; }
It is a simple decryption. It's less safe but the result is shorter.
@param $data
@return string
It is a simple decryption . It s less safe but the result is shorter .