Skip to content Skip to sidebar Skip to footer

What Is The Best Way To Encrypt Login Details (username And Password) Of Any Web Based Application Using Javascript?

What is the best way to encrypt the login details (username and password) of any web based application using JavaScript at client side? My requirement is to encrypt the username a

Solution 1:

You should be encrypting login creds in your backend.

I recommend Crypto-js. There are instructions for both client side and server side.

Solution 2:

Client side: you can use some of the functionality of crypto-js. Also, you will most likely not be able to use it later on because while encrypting, a "salt" would be added to your variable and hashed together with it - rendering it a compare only value (using the hash comparing function)

It is advisable to encrypt data on your back-end though.

Post a Comment for "What Is The Best Way To Encrypt Login Details (username And Password) Of Any Web Based Application Using Javascript?"