Live data from Hacker News

I will never be able to log in to Flickr again

ngzhian.github.io

11–20 of 43 posts

Re: I will never be able to log in to Flickr again

#12
post #8

Earlier quoted context omitted.

Why are they obviously not hashing?

because if they were hashed, spaces would be irrelevant (hashes don't have spaces)

You can apply a hashing algorithm to a string that contains spaces. The spaces are very much relevant.

In MD5 "String with spaces" yields eab431cd212fb8b5ae223acbcfe58cca

"Stringwithspaces" gives 3cd297b2d7e48709d92890f88abdde0a

Re: I will never be able to log in to Flickr again

#14
post #12

Earlier quoted context omitted.

because if they were hashed, spaces would be irrelevant (hashes don't have spaces)

You can apply a hashing algorithm to a string that contains spaces. The spaces are very much relevant. In MD5 "String with spaces" yields eab431cd212fb8b5ae223acbcfe58cca "Stringwithspaces" gives 3cd297b2d7e48709d92890f88abdde0a

I meant the hashes themselves wouldn't have spaces, therefore any odd database storage requirement wouldn't matter.

Re: I will never be able to log in to Flickr again

#15
post #10
post #6

No spaces in passwords? Obviously not hashing them.

Spaces are just characters. Their presence has nothing to do with hashing algorithms working or not.

That's the point; since spaces in the password cleartext should not matter for storing the password hash, what would be a good reason to disallow them?

Re: I will never be able to log in to Flickr again

#16
post #6

No spaces in passwords? Obviously not hashing them.

Actually, they are (or could be, given that I don't know for sure because I don't work there).

It merely means that they are most likely looking for spaces with client-side JavaScript, and rejecting any string that contains spaces.

Or, they're checking the string server-side, before hashing and storing the hash to their persistent data store.

Either way, as long as the connection is secure, it's reasonable to inspect the string in plain-text, both client-side and server-side, before creating the hash, as long as they actually create the hash when they do actually decide to save a representation of the password, rather than saving the plain-text password itself.

Part of me would like to guess that the reason spaces might be forbidden in passwords (and pass phrases) would be to prevent frequency analysis. But that doesn't really make much sense, when it comes to hashes, does it? So then, might the case be that they are storing the passwords with reversible encryption, and decrypting the token for a match? In my mind of minds, I doubt it, but you never know. What I really think is that the password policy is simply contrived and idiotic, and whatever rationale they've used to forbid spaces is silly and ill-conceived.

Either way, I agree with the author, whole-heartedly. That is a damned frustrating sign-up process. Two-factor account creation AND a CAPTCHA check? Holy moly!

Re: I will never be able to log in to Flickr again

#17
post #8

Earlier quoted context omitted.

Why are they obviously not hashing?

because if they were hashed, spaces would be irrelevant (hashes don't have spaces)

its probably because of dumb users. user makes password with spaces, then tries with without spaces and cant figure out why it wont work...

Re: I will never be able to log in to Flickr again

#18
The worse, I guess, is the password constraint. I really fail to understand why should any application (except banking, may be) force its users to go for difficult passwords. I agree, it weakens the security - but warn them, don't force them. It should be a guideline; not a rule. Whether I want to follow it not is my decision; my risk.

Re: I will never be able to log in to Flickr again

#20
post #10

Earlier quoted context omitted.

Spaces are just characters. Their presence has nothing to do with hashing algorithms working or not.

That's the point; since spaces in the password cleartext should not matter for storing the password hash, what would be a good reason to disallow them?

There isn't one.
Post reply on HN