title: Use Md5 to encypt password in Ionic
body: <p>I have a problem encrypting my password using md5. I did the npm install for md5, then imported into my login.ts and applied to the login.data.password like this: </p>
  
  <pre><code>import { Md5 } from 'ts-md5/dist/md5';
  
  loginData = { username:'', password:'' };
  
  Md5.hashStr(this.loginData.password);
  console.log(this.loginData);
  </code></pre>
  
  <p>And into my html form I have this:</p>
  
  <pre><code>&lt;ion-input [(ngModel)]="loginData.password" name="password" type="password" placeholder="Password"&gt;&lt;/ion-input&gt;
  </code></pre>
  
  <p>How can I use the md5 on the login.data.password?
  Thanks</p>