Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Why not show password rules during failed password attempt?
16 points by mukgupta on April 28, 2015 | hide | past | favorite | 6 comments
Most of the times my password is same as/a variant of a generic password that I keep on most of the sites. Now usually what happens is that some website has some specific rule for setting passwords like it should be alphanumeric, have one Special character, or a capitalized character etc. Due to this, I end up resetting my password which wouldn't be needed if I was aware of the password rules. Wouldn't it be simply better if websites can simply tell you the password rules in case of failed password attempt. I don't see any security issue with that. Do other HNers face similar problem?


There is no security issue with that. This "feature" would definitely be useful (and in a way needed), even though I use a password manager anyways.


1. Don't use the same password everywhere.

2. Use a password manager like LastPass or 1Password.

Regardless of the incidental security risk of showing those rules, the site shouldn't facilitate your irresponsibility when it comes to password management.


On a similar note, why do we have to use the error message "Wrong username or password"? Can't any hacker just try to make an account with a username to see if it exists?


The username might exist, but be the wrong one. In such a scenario, the password is correct for the intended account but not for this particular account. Meaning that the message "Wrong password" will confuse the user.


> On a similar note, why do we have to use the error message "Wrong username or password"?

Any hacker can try doing that irrespective of the message that you decided to show. Besides this error message, you can say - "Invalid credentials" or "Your information do not match with our records"


I agree. There shouldn't be any security issue with that (unless your password rule is, "no more than 4 digits", even then).

This is one of those things that I think should culturally change. Maybe it can start with YC companies?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: