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.
[ Parent
| on HN ]
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.