Earlier quoted context omitted.
That makes sense if you are making a contact book or social profile. I was focusing on the case where I want the number as contact information. I want to validate up front that it is a number that I can actually call and don't really care about how the user wants to format it.
Right, but it's user-hostile. I prefer thinking of, and typing, my phone number as a mix of numbers and letters... so why won't you allow me to do so?
Gmail password first character is case insensitive on mobile device
181–190 of 278 posts
Re: Gmail password first character is case insensitive on mobile device
#182Earlier quoted context omitted.
I think that’s a likely route. It’s a question of what is more efficient, compute of hash or storage/retrieval and comparison to multiple. To implement, choice of storing three hashes or computing n * hashes where n < 1, the probability of getting a match before having to try another.
why would you have to retrieve multiple? could you not calculate the 3 hashes, and then do SELECT WHERE pass = HASH1 OR pass = HASH2 OR pass = HASH3? You don't care which one was correct just that one is.
Re: Gmail password first character is case insensitive on mobile device
#183Earlier quoted context omitted.
You can also normalize the password, e.g. always make the first letter lowercase and reverse the case of the rest if the second letter is uppercase. Then you only have to hash that. HeLLo, heLLo, hEllO, HEllO all normalize to heLLo
Doing this reduces way more the space of characters and reduces security.
Re: Gmail password first character is case insensitive on mobile device
#184Earlier quoted context omitted.
They wouldn't have to store 3 hashes, would they? They could just get the hash of each of those transformations, e.g., reverse case, get hash. If the transformation make the incorrect password into the correct one, it will match the original hash.
Oh you mean the client sends 3 hashes and backend validates if just one matches?
Re: Gmail password first character is case insensitive on mobile device
#185Earlier quoted context omitted.
They wouldn't have to store 3 hashes, would they? They could just get the hash of each of those transformations, e.g., reverse case, get hash. If the transformation make the incorrect password into the correct one, it will match the original hash.
Oh you mean the client sends 3 hashes and backend validates if just one matches?
Re: Gmail password first character is case insensitive on mobile device
#186Earlier quoted context omitted.
Is this implemented by Facebook holding 3 hashes of your password? It doesn’t save your actual password clear text (or encrypted clear text), does it? A related question: when a password system tells me I need to change my password, and it has to differ by 3 letters from my previous password, is that system storing my password text rather than the hash of the password? Is that safe?
It can all be done client-side: the client can try (un)capitalizing the letters after the original password fails
Re: Gmail password first character is case insensitive on mobile device
#187Earlier quoted context omitted.
Is this implemented by Facebook holding 3 hashes of your password? It doesn’t save your actual password clear text (or encrypted clear text), does it? A related question: when a password system tells me I need to change my password, and it has to differ by 3 letters from my previous password, is that system storing my password text rather than the hash of the password? Is that safe?
It can all be done client-side: the client can try (un)capitalizing the letters after the original password fails
Re: Gmail password first character is case insensitive on mobile device
#188Earlier quoted context omitted.
good lord, why would you ever expect psuedo code to be my level of understanding of how to store a password. i don't ever store passwords. hashes only.
Because the pseudo code looks quite bad? The clause should pick the user not the password or hash or anything like it. The hash (and possibly salt etc) should come back via the selected column list. The other way round is inviting trouble and could indicate a poor understanding, though I agree they shouldn't be so snarky without some explanation.
Maybe these generous assumptions about someone’s pseudo code are unwarranted?
Re: Gmail password first character is case insensitive on mobile device
#189Earlier quoted context omitted.
Oh you mean the client sends 3 hashes and backend validates if just one matches?
Hashing is done on the server. Hashing on the client would defeat the whole purpose.
EDIT: Oh right, salts.
Re: Gmail password first character is case insensitive on mobile device
#190Earlier quoted context omitted.
You can also normalize the password, e.g. always make the first letter lowercase and reverse the case of the rest if the second letter is uppercase. Then you only have to hash that. HeLLo, heLLo, hEllO, HEllO all normalize to heLLo
Doing this reduces way more the space of characters and reduces security.