public function encode($data)
    {
        return openssl_encrypt($data, $this->method, $this->key, 0, $this->iv);
    }
public function encode($data)
    {
        return openssl_encrypt($data, $this->method, $this->key, 0, $this->iv);
    }
public function encode ( $ data ) { return openssl_encrypt ( $ data , $ this -> method , $ this -> key , 0 , $ this -> iv ) ; }
Encode data by openssl_encrypt

@param string $data
@return string
Encode data by openssl_encrypt