Re:Show HN: A dating app that matches people based on their ...
by pcmonk on Thursday February 01, 2018 @04:05PM
(#16285881)
They could definitely use a unique salt if they just check for matches on registration, login, or password change (when they have it in plain text). Still insecure because then you have the info that two different salted passwords have the same plaintext.
[ Parent
| on HN ]
Re:Show HN: A dating app that matches people based on their ...
by scoot on Thursday February 01, 2018 @04:09PM
(#16285917)
But then what would they match it against?
Re:Show HN: A dating app that matches people based on their ...
by jstanley on Thursday February 01, 2018 @04:10PM
(#16285925)
It seems to be looking for exact matches only, so a linear search against the entire user list should be fine, and should quite comfortable be adequate even for thousands of users, depending on hashing algorithm.
Re:Show HN: A dating app that matches people based on their ...
by joshuahutt on Friday February 02, 2018 @12:08PM
(#16292144)
But the rest of the passwords wouldn't be in plain text...
Re:Show HN: A dating app that matches people based on their ...
by jstanley on Saturday February 03, 2018 @05:08AM
(#16296997)
But you know the password that has just been entered. Iterate over every hashed password. Hash the plaintext password you know, using the salt from the hashed password. If it's a match, record that the 2 users matched. Loop to next hashed password.
If they were plaintext it wouldn't need a linear search because the column could be indexed.