|
|
|
|
|
by bullen
2934 days ago
|
|
Just hash = hash(secret + salt) and the server enforces the single use by generating and sending one for each authentication, so you need double handshake: client ----- server req salt -> gen salt hash sec. <- reply salt send hash -> remove salt all good? <- verify hash |
|
Also you should maybe read https://benlog.com/2008/06/19/dont-hash-secrets/