title: How to generate hashing password with the SHA-1 algorithm in Ionic 2
body: <p>I have a requirement to send the <strong>password</strong> value to back-end in the form of hash using <strong>SHA-1 hashing algorithm</strong>. Please guide me how can i achieve this objective.</p>
  
  <p>I have googled and found a <a href="https://www.npmjs.com/package/sha1" rel="nofollow noreferrer">link</a> which is one native js function in npm package, but is there any way i can use it in my Ionic 2 application ? Or any other way like adding an external <a href="https://github.com/emn178/js-sha1/tree/master/src" rel="nofollow noreferrer">js</a> file in the application and use the function in it to build the password hash.</p>