title: encryption not working in ajax
body: <p>I always use encrypt and decrytp in codeigniter. Now when i am trying to login using ajax decrypt not working for me. My coding is as below</p>
  
  <pre><code>&lt;?php
  public function CheckLogin(){
          $this-&gt;input-&gt;post('password');
          $password = $this-&gt;encrypt-&gt;decode($this-&gt;input-&gt;post('password'));
          if($this-&gt;input-&gt;post('profile') == 'distributer'){
                  $Response = $this-&gt;db-&gt;get_where($this-&gt;db-&gt;dbprefix."distsributer_account",array('username'=&gt;$this-&gt;input-&gt;post('username'),'password'=&gt;$password,'status'=&gt;'Y'))-&gt;result();
          }
          if($this-&gt;input-&gt;post('profile') == 'retailer'){
                  $Response = $this-&gt;db-&gt;get_where($this-&gt;db-&gt;dbprefix."Sefnder",array('Username'=&gt;$this-&gt;input-&gt;post('username'),'Password'=&gt;$password,'status'=&gt;'Y'))-&gt;result();
          }
  }
  ?&gt;
  </code></pre>
  
  <p><em>when i check the console giving the wrong table name password show 0 this means the <code>$this-&gt;encrypt-&gt;decode($this-&gt;input-&gt;post('password'))</code> not working for me.</em></p>
  
  <p>i already checked the value of $this->input->post('password') is working fine</p>
  
  <p>my returned sql query is this </p>
  
  <pre><code>SELECT * FROM `flip_distsributer_account`
  WHERE `username` = 'Asht@160921'
  AND `password` =0
  AND `status` = 'Y'
  </code></pre>