title: how to make confirm password validation cakephp with hashing it
body: <p>I'm using cakephp 2.xx, I want to hashing password with sha256 before it going to database,
  before it I wanna make validation value password in my form input, validation which check password input and re-confirm password is match, if In my controller, when form catch validation, the password automatically hash</p>
  
  <pre><code>if ($this-&gt;request-&gt;data['Driver']['password'] != $this-&gt;request-&gt;data['Driver']['confirm_password']) {
        $this-&gt;request-&gt;data['Driver']['password'] = hash('sha256',$this-&gt;request-&gt;data['Driver']['password']);
  }
  </code></pre>
  
  <p>necessarily, the password hash when form no catch validate at all, so how can I make validation in my model ? </p>
  
  <p>Thanks In Advance.</p>