|
|
|
|
|
by TorKlingberg
3405 days ago
|
|
This is really good to be aware of, even if there were no collisions. I could imagine someone making for example a signed cookie scheme that is value,SHA1(secret,value). Someone could then change it to value+foo,SHA1(secret,value+foo) without knowing the secret, and it would verify as a valid signed cookie. |
|
It's why you don't use a bare hash as authentication, but instead use a HMAC.