|
|
|
|
|
by yid
3561 days ago
|
|
Whenever I see "base64" mentioned in a security article, I get cautious. The "split token" password reset is snake oil. Just store the hash of the token (ideally stretched like any password) in the database and mail the original token out. No need for "split tokens". A password reset token is a temporary password and should be treated like one. |
|
One of two things just happened:
I'm going to assume the latter. Here's the thing: Other solutions (relying on the avalanche effect of hash functions, using a random sleep, or sleeping until a minimum amount of time has passed) are brittle and harder to reason about than solving the problem directly, which is what the article proposes.See also: http://stackoverflow.com/a/28486617/2224584
You might disagree with the technical details and arguments laid out, but it isn't snake oil.