title: Codeigniter cannot decode the encrypted password
body: <p>I made a login form where the user submit his username and password. If the username exist I decode the password and check if is the same as the submitted password.</p>
  
  <p>// This is from db</p>
  
  <pre><code>string(50) "v+bNPHNWHGQbcxrvu1vN8Ty++cMq0oEeaZesvfCfsLgNAFgZno"
  </code></pre>
  
  <p>// And this is after decode the string above</p>
  
  <pre><code>string(32) "ï¿½ï¿½ Uï¿½U{qï¿½0ï¿½4ï¿½ï¿½è€UCï¿½ï¿½oï¿½/ï¿½*ï¿½."
  </code></pre>
  
  <p>But it should return <strong>123456</strong></p>
  
  <p>For encode I use</p>
  
  <pre><code>$this-&gt;encrypt-&gt;encode('123456');
  </code></pre>
  
  <p>And this is secret key</p>
  
  <pre><code>$config['encryption_key'] = 'kRlaMneym7rF';
  </code></pre>
  
  <p>// Edit</p>
  
  <p>The problem was that password field was set to varchar 50</p>