I want to encrypt password at client side and decrypt password using asymmetric keys

1.5k views Asked by At

I have to encrypt password form client side and decrypt it on server side. Then this decrypted password is passed through ldap. I get true or false in return as response. I cannot use MD5 as password cannot be retrieved form that. Is there any algorithm or api that can be used to encrypt and decrypt the same.

1

There are 1 answers

0
DDan On

I don't suggest password encryption on client side (and really, really don't suggest writing own). Using SSL for login, then handling password things in your back-end is the way to go.

If no other choice and need JS encryption, here are some SO discussions which might help: