title: How to properly secure password in AngularJS
body: <p>I was recently reading the following <a href="https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec#.j85n08u8x" rel="noreferrer">article</a> about <em>Techniques for authentication in AngularJS applications</em>. His concept is pretty similar to how I would normally approach this process, but the way that the password is being binded to the controller in clear text seem like a security flaw to me and I was wondering what are better ways to approach this?</p>
  
  <pre><code>&lt;input type="password" id="password" ng-model="credentials.password"&gt;
  </code></pre>
  
  <p>One way, I would think, is to encrypt the bound passwords on the controller? is there a way to do that?</p>