I have a dilemma. I have a field hashedXthat is a hashed / salted value, and the salt is stored on the same line in the mysql database as normal practice.
hashedX saltX
------ ------
hashed1 ssai3
hashed2 woddp
hashed3 92ofu
When I receive inputX, I need to know if it matches any of the values ββin hashedX, for example hashed1 hashed2or hashed3. Therefore, as a rule, I would take my input, hash / salt it and compare it with the values hashedX. Pseudocode:
$hashed_input = hash ($input with $salt );
select * from tablename where $hashed_input is hashedX
The problem is that I donβt know which one saltXI even need to get to $hashed_inputbefore I can do any select.
, , , / hashedX . 100 000 , , . , , .