Does it make security sense to hash password on client end

后端 未结 10 1660
清酒与你
清酒与你 2020-12-23 12:21

If you were to hash a user\'s password prior to sending it across the line and leaving it in plain-text in memory, would this improve the security of the application?

<
10条回答
  •  忘掉有多难
    2020-12-23 12:29

    The hash is identical to the password from a security POV in the scenario you describe: if I intercept the hash, I don't need to know the password, I can just send the server the hash I intercepted.

    Authentication protocols go to some length to avoid this problem; security is hard, and you are best off selecting and implementing a well-understood protocol rather than rolling your own.

    If your traffic is going over SSL, you're safe from interception and hashing gives you little extra benefit.

提交回复
热议问题