Hacker News new | ask | show | jobs
by pconner 4403 days ago
Spaces are just characters. Their presence has nothing to do with hashing algorithms working or not.
2 comments

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.
Which begs the question why I was downvoted heavily and posted to @shit_HN_says for making the comment.
How the hell should I know? But if I had to guess, I'd say it was because your prior comment implicitly equates "spaces prohibited in passwords" and "passwords not hashed" and assumes the latter as a necessary consequence of the former, when the two are entirely unrelated.

Now, to be fair, that's an uncharitable interpretation of the comment you're complaining about. But you helpfully make clear in a later comment that that was what you meant:

> I'm saying that because they're disallowing the submission of spaces, they aren't hashing their passwords when they get to the server.

And that just doesn't follow, and that's probably why your comment is getting downvoted, but not why I downvoted it just now. I don't downvote for content, but only for rudeness, unfunny jokes, and complaining about downvotes.

Should leading and trailing spaces be removed from input fields?