So they hash both versions of the password? Or how does this work?
Sadly it can also mean that they save your password in a form that enables them to read it if they need/want it.
Gmail password first character is case insensitive on mobile device
11–20 of 278 posts
Re: Gmail password first character is case insensitive on mobile device
#12Re: Gmail password first character is case insensitive on mobile device
#13So they hash both versions of the password? Or how does this work?
Re: Gmail password first character is case insensitive on mobile device
#14Similarly there are many sites that allow you to log in using `your password` or `your password`.swapcase() (for example, Password123 or pASSWORD123). Automatically trying a variant only costs a single bit of entropy and can greatly reduce login issues
Re: Gmail password first character is case insensitive on mobile device
#15Re: Gmail password first character is case insensitive on mobile device
#16Earlier quoted context omitted.
They probably just do two password checks.
That's what I meant... hash both versions when logging in.
Actually I realise GP is equally ambiguous. But I read that as (and my own assumption would be) frontend retries with the variation, backend verifies against the same only one stored.
Re: Gmail password first character is case insensitive on mobile device
#17So they hash both versions of the password? Or how does this work?
Sadly it can also mean that they save your password in a form that enables them to read it if they need/want it.
Normal password code would be
if (doHash(password+salt) == storedHash) {
failedLogins = 0;
return 1;
}
failedLogins++;
return 0;
This would presumably be if (doHash(password+salt) == storedHash) {
failedLogins = 0;
return 1;
}
if (doHash(swapFirstLetterIfClientIsMobile(password)+salt) == storedHash) {
failedLogins = 0;
return 1;
}
failedLogins++;
return 0;
So while the password is 'stored' in the server side heap, it's no different to normal password 'storage'If the hash is done in the client it's the same, just the client sends two attempts rather than one.
Re: Gmail password first character is case insensitive on mobile device
#18Similarly there are many sites that allow you to log in using `your password` or `your password`.swapcase() (for example, Password123 or pASSWORD123). Automatically trying a variant only costs a single bit of entropy and can greatly reduce login issues
I remember this being the case on Facebook?
Re: Gmail password first character is case insensitive on mobile device
#19Re: Gmail password first character is case insensitive on mobile device
#20So they hash both versions of the password? Or how does this work?
Or just normalize the password by making the first character either lower- or uppercase both when checking and setting it.
So now you have to create 2 flows, those before the new policy and those that were set after the normalization.