You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In https://echo.labstack.com/cookbook/jwt , == results in a timing attack (even if you are comparing hashes like this: hash(webPassword) == savedHashedPassword).
The example code should probably have at least a comment // example only; string comparisons are vulnerable to timing attacks and perhaps another comment that even just hashed passwords should use the timing-attack-resistant comparison functions within the hash library, rather than a regular == string comparison.
The text was updated successfully, but these errors were encountered:
In https://echo.labstack.com/cookbook/jwt ,
==
results in a timing attack (even if you are comparing hashes like this:hash(webPassword) == savedHashedPassword
).The example code should probably have at least a comment
// example only; string comparisons are vulnerable to timing attacks
and perhaps another comment that even just hashed passwords should use the timing-attack-resistant comparison functions within the hash library, rather than a regular==
string comparison.The text was updated successfully, but these errors were encountered: