Re:“Username or password is incorrect” is bullshit
by gregoriol on Tuesday December 26, 2017 @03:31PM
(#16010823)
If you are able to do that, then I insist: you probably have failed at best practices.
Most likely on this part: a good password hashing (ie. security hashing) should be fast so that you can log-in but slow enough to prevent brute force (ie. what you are implying). Hashings like md5/shaX don't have that: you can compute of lot them very quickly, which is their purpose. Bcrypt/Argon2/... will have a cost/time that will allow only a few computation per second, which is their purpose.
So if you did best practices well, and try to loop through your users database, (I assume you have more than a few hundreds users) it might take some time, some long time. Anyway, you'll then fail at another best practice because the initial user trying to log in will get bored and be gone somewhere else ;-)
Re:“Username or password is incorrect” is bullshit
by mark-r on Friday December 22, 2017 @06:19PM
(#15991718)
You might be able to do it for all user names within a certain Levenshtein distance of the current user. That would handle mistyping, but it wouldn't handle the case where you have numerous emails and forgot which you signed up with on this site.
Re:“Username or password is incorrect” is bullshit
by interfixus on Friday December 22, 2017 @11:37AM
(#15988699)
That's so horrible it never entered my mind. But you're right, of course, one could do that.
(Not that any of this is good practice.)