Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Issue 862103002: Only store leading 13 bits of password hash. (Closed)

Created:
5 years, 11 months ago by Mike Lerman
Modified:
5 years, 10 months ago
Reviewers:
bcwhite, jww, jwd, sky
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only store leading 13 bits of password hash. Also, take ownership for a related but un-owned histogram. BUG=433180 TBR=sky@chromium.org Committed: https://crrev.com/c511691cc06fd3a92f27e688795872e61efff40a Cr-Commit-Position: refs/heads/master@{#314168}

Patch Set 1 #

Patch Set 2 : Shorten truncation function #

Patch Set 3 : Pre-review check #

Total comments: 20

Patch Set 4 : Rebase #

Patch Set 5 : Create a versioned HashEncoding object. #

Patch Set 6 : Comment #

Total comments: 6

Patch Set 7 : Make LocalAuth a class so methods can be private and exposed only to tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -78 lines) Patch
M chrome/browser/signin/chrome_signin_client.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/local_auth.h View 1 2 3 4 5 6 1 chunk +29 lines, -11 lines 0 comments Download
M chrome/browser/signin/local_auth.cc View 1 2 3 4 5 6 7 chunks +127 lines, -49 lines 0 comments Download
M chrome/browser/signin/local_auth_unittest.cc View 1 2 3 4 5 6 4 chunks +61 lines, -8 lines 0 comments Download
M chrome/browser/signin/signin_manager_factory.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (3 generated)
Mike Lerman
Hi reviewers, PTAL at my CL. Thanks! jwd - histograms bcwhite + jwd - local_auth* ...
5 years, 11 months ago (2015-01-21 20:37:15 UTC) #2
bcwhite
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc#newcode36 chrome/browser/signin/local_auth.cc:36: const unsigned kHash1StoredBits = 13; "Hash2" This is storage ...
5 years, 11 months ago (2015-01-21 21:04:40 UTC) #3
jwd
histograms LGTM
5 years, 11 months ago (2015-01-22 21:23:45 UTC) #4
jww
+1 to bcwhite's comments, plus a few more. https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc#newcode194 chrome/browser/signin/local_auth.cc:194: password_hash ...
5 years, 11 months ago (2015-01-22 21:48:19 UTC) #5
bcwhite
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc#newcode194 chrome/browser/signin/local_auth.cc:194: password_hash = CreateSecurePasswordHash(salt_str, password, encoding); I didn't pass an ...
5 years, 11 months ago (2015-01-23 01:28:38 UTC) #6
jww
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc#newcode194 chrome/browser/signin/local_auth.cc:194: password_hash = CreateSecurePasswordHash(salt_str, password, encoding); On 2015/01/23 01:28:38, bcwhite ...
5 years, 10 months ago (2015-01-26 18:31:51 UTC) #7
bcwhite
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc#newcode194 chrome/browser/signin/local_auth.cc:194: password_hash = CreateSecurePasswordHash(salt_str, password, encoding); I guess I always ...
5 years, 10 months ago (2015-01-27 18:02:25 UTC) #8
Mike Lerman
Create a HashEncoding object to track versions better. Thanks for the feedback! https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc ...
5 years, 10 months ago (2015-01-27 21:02:27 UTC) #9
bcwhite
https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc#newcode25 chrome/browser/signin/local_auth.cc:25: struct HashEncoding { I'm not sure it's worth the ...
5 years, 10 months ago (2015-01-28 15:34:12 UTC) #10
Mike Lerman
https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc#newcode25 chrome/browser/signin/local_auth.cc:25: struct HashEncoding { On 2015/01/28 15:34:12, bcwhite wrote: > ...
5 years, 10 months ago (2015-01-28 15:38:38 UTC) #11
bcwhite
https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc#newcode25 chrome/browser/signin/local_auth.cc:25: struct HashEncoding { Not true. The locally saved hash ...
5 years, 10 months ago (2015-01-28 16:01:36 UTC) #12
Mike Lerman
https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc File chrome/browser/signin/local_auth.cc (right): https://codereview.chromium.org/862103002/diff/100001/chrome/browser/signin/local_auth.cc#newcode25 chrome/browser/signin/local_auth.cc:25: struct HashEncoding { On 2015/01/28 16:01:35, bcwhite wrote: > ...
5 years, 10 months ago (2015-01-28 16:45:56 UTC) #13
jww
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.h File chrome/browser/signin/local_auth.h (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.h#newcode37 chrome/browser/signin/local_auth.h:37: std::string TruncateStringByBits(const std::string& str, const size_t len_bits); On 2015/01/27 ...
5 years, 10 months ago (2015-01-29 11:44:45 UTC) #14
Mike Lerman
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.h File chrome/browser/signin/local_auth.h (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.h#newcode37 chrome/browser/signin/local_auth.h:37: std::string TruncateStringByBits(const std::string& str, const size_t len_bits); On 2015/01/29 ...
5 years, 10 months ago (2015-01-29 16:57:42 UTC) #15
jww
https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.h File chrome/browser/signin/local_auth.h (right): https://codereview.chromium.org/862103002/diff/40001/chrome/browser/signin/local_auth.h#newcode37 chrome/browser/signin/local_auth.h:37: std::string TruncateStringByBits(const std::string& str, const size_t len_bits); On 2015/01/29 ...
5 years, 10 months ago (2015-01-29 17:40:57 UTC) #16
Mike Lerman
Brian, we spoke offline, and mostly agreed to disagree. Any other comments, Brian or Joel?
5 years, 10 months ago (2015-01-29 22:26:57 UTC) #17
jww
lgtm, modulo bcwhite's comments.
5 years, 10 months ago (2015-01-30 09:48:15 UTC) #18
bcwhite
lgtm
5 years, 10 months ago (2015-02-02 15:25:47 UTC) #19
Mike Lerman
Hi Sky, I need a rubber-stamp review in c/b/ui, I changed a namespace call to ...
5 years, 10 months ago (2015-02-02 15:31:54 UTC) #21
Mike Lerman
Actually Sky, even less, i'm just removing some un-needed headers from c/b/ui files, no actual ...
5 years, 10 months ago (2015-02-02 16:19:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/862103002/120001
5 years, 10 months ago (2015-02-02 16:20:14 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-02 18:16:26 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 18:18:02 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c511691cc06fd3a92f27e688795872e61efff40a
Cr-Commit-Position: refs/heads/master@{#314168}

Powered by Google App Engine
This is Rietveld 408576698