Title: Timing vulnerability? · Issue #42 · bcrypt-ruby/bcrypt-ruby · GitHub
Open Graph Title: Timing vulnerability? · Issue #42 · bcrypt-ruby/bcrypt-ruby
X Title: Timing vulnerability? · Issue #42 · bcrypt-ruby/bcrypt-ruby
Description: I've been working on implementing bcrypt-ruby and have been reading about timing attacks, particularly your article here: http://codahale.com/a-lesson-in-timing-attacks/ I notice that Devise (popular gem that uses bcrypt-ruby) implements...
Open Graph Description: I've been working on implementing bcrypt-ruby and have been reading about timing attacks, particularly your article here: http://codahale.com/a-lesson-in-timing-attacks/ I notice that Devise (popul...
X Description: I've been working on implementing bcrypt-ruby and have been reading about timing attacks, particularly your article here: http://codahale.com/a-lesson-in-timing-attacks/ I notice that Devise (p...
Opengraph URL: https://github.com/bcrypt-ruby/bcrypt-ruby/issues/42
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Timing vulnerability?","articleBody":"I've been working on implementing bcrypt-ruby and have been reading about timing attacks, particularly your article here:\n\nhttp://codahale.com/a-lesson-in-timing-attacks/\n\nI notice that Devise (popular gem that uses bcrypt-ruby) implements a constant-time comparison algorithm in conjunction with bcrypt-ruby:\n\nhttps://github.com/plataformatec/devise/blob/master/lib/devise.rb#L424\n\nI also notice that bcrypt-ruby's BCrypt class inherits from Ruby's String class, and the BCrypt#== method simply calls up to super, thus comparing strings using Ruby's String#== method, which I assume is not a constant-time comparison algorithm.\n\nShould BCrypt handle this constant time issue in it's comparison method?\n","author":{"url":"https://github.com/corporealfunk","@type":"Person","name":"corporealfunk"},"datePublished":"2012-07-12T22:53:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/42/bcrypt-ruby/issues/42"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb412a1d-4cca-eae9-8164-3682c2240229 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7FE:1FFDFF:77B4EC:A2572A:6A4EC49D |
| html-safe-nonce | 1c9725c3d27597865102ed486befb9a30f7296893691a96d54da40334619530c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0ZFOjFGRkRGRjo3N0I0RUM6QTI1NzJBOjZBNEVDNDlEIiwidmlzaXRvcl9pZCI6IjQxOTkxNTM5MTMyMTM5Mjg2MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e7dccd170bf5190f120f5fbc72ef5abdb46da143f52785bd074e46d0049fb2f |
| hovercard-subject-tag | issue:5584255 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bcrypt-ruby/bcrypt-ruby/42/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9cac71201f63f0d7171f4a67769218d959787c3e477ba9f1f721de7dcf68b621/bcrypt-ruby/bcrypt-ruby/issues/42 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9cac71201f63f0d7171f4a67769218d959787c3e477ba9f1f721de7dcf68b621/bcrypt-ruby/bcrypt-ruby/issues/42 |
| og:image:alt | I've been working on implementing bcrypt-ruby and have been reading about timing attacks, particularly your article here: http://codahale.com/a-lesson-in-timing-attacks/ I notice that Devise (popul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | corporealfunk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/bcrypt-ruby/bcrypt-ruby git https://github.com/bcrypt-ruby/bcrypt-ruby.git |
| octolytics-dimension-user_id | 81594302 |
| octolytics-dimension-user_login | bcrypt-ruby |
| octolytics-dimension-repository_id | 15293 |
| octolytics-dimension-repository_nwo | bcrypt-ruby/bcrypt-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 15293 |
| octolytics-dimension-repository_network_root_nwo | bcrypt-ruby/bcrypt-ruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width