title: Codeigniter: How can I encrypt password before submitting the form to the controller?
body: <p>I have a simple <code>html</code> login form</p>
  <pre><code>&lt;form method=&quot;post&quot; action=&quot;http://www.example.com/login&quot;&gt;
      &lt;input type=&quot;text&quot; name=&quot;text_box&quot; /&gt;
      &lt;input type=&quot;password&quot; name=&quot;pass_word&quot; /&gt;
      &lt;input type=&quot;submit&quot; name=&quot;submit&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p>when I submit the form and in the controller</p>
  <pre><code>public function login(){
      $pass_word = $this-&gt;input-&gt;post('pass_word');
      die($pass_word);
  }
  </code></pre>
  <p>The problem here, it shows the plain password, if I type <code>123456</code> in controller , I get <code>123456</code>.</p>
  <ol>
  <li>Is this a security issue?</li>
  <li>Can any one get my password through a network monitoring tool like <code>wireshark</code>?</li>
  </ol>
  <p>how to avoid this? Can I encrypt the password in view, before send to the controller?</p>