Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use constant-time string comparison algorithm.
This borrows the string comparison code from Devise to prevent timing attacks (http://codahale.com/a-lesson-in-timing-attacks/).
- Loading branch information
b26e4e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's this how ruby's == (which uses <=>) is implemented anyways? It doesn't short circuit on a mis-match.