Does it make security sense to hash password on client end

后端 未结 10 1640
清酒与你
清酒与你 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:34

    Yes, you should.

    IEEE had a data breach in which 100K emails and passwords were exposed from a weblog.

    http://ieeelog.com/

    Obviously, IEEE should not have exposed their weblog! But if they had hashed the passwords at the client side, this wouldn't have been nearly as bad.

    As the first answer states, you should use a nonce. If you use a long enough nonce (e.g. 128 bits), you don't really need to worry about reuse, as the server will never ask for the same nonce twice (assuming correctly seeded CRNG, etc.).

提交回复
热议问题