How to encryption password in ionic?

I’m still build application who can save data in database, i connected my ionic application to mysql database use webservice. My ionic application can save data sign up like username,password,first name, last name,etc. For password, how to encryption password input?Anybody can help me please. Thank you…

Hi,
To ensure safe login password encryption in must . Since Ionic is based on JavaScript and encryption code(algorithm) is exposed to the user,
you should encrypt the data in your server side not in client side …
To ensure password safety it is good to encrypt data before sending to server . So my recommendation is to

  1. encrypt password in client side .
  2. Decrypt password in server side.
  3. encrypt using different algorithm or at least different key and save in database .
1 Like