Earlier 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.
Gmail password first character is case insensitive on mobile device
161–170 of 278 posts
Re: Gmail password first character is case insensitive on mobile device
#162Earlier quoted context omitted.
In Python, it is expected that typing an identifier will not cause an action to happen... so this is consistent with that expectation.
In Python3, that is. I'd love to find (never looked...) a python3 repl where `print`, `dir`, `help` all behave like python2's `print`, since they're debug/lookup tools. It's rather often I'll open a terminal and want to check one of those things, and... typing () characters just adds significant effort (for lack of better description).
Re: Gmail password first character is case insensitive on mobile device
#163Earlier quoted context omitted.
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.
Please never implement a password feature without reading more about how passwords should be stored.
Re: Gmail password first character is case insensitive on mobile device
#164Earlier quoted context omitted.
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.
Please never implement a password feature without reading more about how passwords should be stored.
Re: Gmail password first character is case insensitive on mobile device
#165Earlier quoted context omitted.
This is like when on a cli application -h displays a hint that you probably meant --help (or the other way around). If you already know someone wants to display the help, why not just display it?
>>> exit Use exit() or Ctrl-Z plus Return to exit
Re: Gmail password first character is case insensitive on mobile device
#166Earlier quoted context omitted.
Most competent websites I know accept general UTF8 characters like emoji perfectly fine. There are a lot of crappier websites that don't even have proper unicode support for usernames or profile descriptions out there, though, so your mileage may vary. As far as I know, there's nothing preventing a password field from containing any valid unicode string. The problem may be IME support or servers stuck in ASCII, but t…
Even surprisingly big names are surprisingly bad at this. Don't know recently, but Hotmail/Outlook used to have a rule of only using letters, numbers, and a handful of symbols, also limiting you to at most 16 characters or something. You couldn't even type a space!
So while we’d love to make it utf8, it is just too much work to justify doing over other things.
Re: Gmail password first character is case insensitive on mobile device
#167Earlier quoted context omitted.
This is different, there is no special case handling here for you typing "exit". Python functions are invoked with parenthesis, while typing a name without parenthesis retrieves the content of a variable. The Python CLI helpfully sets the "exit" variable to that string so that you don't get a confusing NameError when you make this mistake.
It is result of calling `exit.__str__()`. This function could have called exit() itself instead.
Besides, you usually have a more convenient exit available with Ctrl-D anyway.
Re: Gmail password first character is case insensitive on mobile device
#168Earlier quoted context omitted.
Many people note their passwords down in eg. a text document. Not a great practice, but password management is a pain for most people. So when they do that, their editor might auto-capitalize the first character.
And then you see it's capitalized and change it.
Re: Gmail password first character is case insensitive on mobile device
#169Earlier 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.
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
Re: Gmail password first character is case insensitive on mobile device
#170Ever call Fidelity phone support and hear "enter your password on the keypad"? That means collapsing ~62 chars into 10 char options, a massive space reduction. Then there's the fact that many banking sites (BofA, IIRC) only used the first 8 char of your password anyway.
Yikes, I didn't know that. Seems like I need to make my fidelity password 6 times longer. Does this also mean they probably store passwords in clear text? Because there's no way to normalize the numeric passwords back to letters and symbols.
They can generate the phone password on the client side and send both passwords to be salted, hashed, and stored separately.
That much seems OK.
But the salted+hashed phone password is incredibly weak. It can be brute forced readily unless it is very long.
From the brute forced phone password, the regular password can be brute forced as well, since the digits of the phone password tremendously constrain the characters of the regular password.
It's very much like the Hollywood hacking where the hackers progressively lock digits of your password and eventually discover the whole thing.