jQuery,sending password via ajax?

前端 未结 5 1729
说谎
说谎 2020-12-05 13:59

I have registration box,and I want users to register via ajax. Is it safe to send password via jquery ajax? If not,can someone explain what to do to secure password data,any

5条回答
  •  伪装坚强ぢ
    2020-12-05 14:37

    If you want to go one step further with security. You don't even need to collect the users password, you can generate a hash (with salt!) on the client side with something like this http://www.movable-type.co.uk/scripts/sha1.html then you never see the password, only the hash

    The only issue with this is javascript is required. you can easily do a fallback however

提交回复
热议问题