[Cryptography] Hash Password, Nonce

来源:互联网 发布:淘宝上的原厂汽车配件 编辑:程序博客网 时间:2024/05/20 06:51

(1) Hashed Password

  stored hashed password H(p)in the Database, instead of plaintext password  use random number,called SALT (salt), together with P to add in the hash function.

这里写图片描述


(2) Nonce

Problems:

    1. Man in the middle(Modify)    2. Reply(retransmit)

这里写图片描述

这里写图片描述

Countermeasures:

  1. Nonce to prevent Replay      random number, just used once      ensure the messages are fresh  2. Timestamp to prevent Man in the middle      require synchronized clocks      means limited time to do something

这里写图片描述

0 0