News for hackers. Stuff that matters.
Re:Tell HN: Bash.org Is No More by bayindirh on Thursday January 11, 2024 @08:11AM (#38951756)
I guess you're right. My HN password is *****.

When I edit, I can see it, but when I save the comment, it becomes starred. It even randomizes the length every time I save.

Brilliant!

Re:Tell HN: Bash.org Is No More by GTP on Thursday January 11, 2024 @09:11AM (#38952364)
But this also means that they know your plaintext password, meaning that they're saving passwords in plaintext. Given that this is mostly a technical community, it's much more the risk of keeping a database of plaintext passwords than the benefit of being able to obfuscate passwords in comments.

EDIT: thanks to another commenter, I understood that what's happening in the above comments is just a meme and HN isn't storing plaintext passwords. Sorry for the misunderstanding.

Re:Tell HN: Bash.org Is No More by Volundr on Thursday January 11, 2024 @09:27AM (#38952590)
In case you're unclear why your being down voted, comment chain is a riff on one of the more famous bash.org quotes: https://knowyourmeme.com/memes/hunter2.

HN does not actually know your password or hide it in comments.

Re:Tell HN: Bash.org Is No More by mewpmewp2 on Thursday January 11, 2024 @11:28AM (#38954417)
> HN does not actually know your password or hide it in comments.

Does it not know? What if I post it in this comment? My password is *****.

Re:Tell HN: Bash.org Is No More by Duanemclemore on Thursday January 11, 2024 @11:17AM (#38954247)
(whistles softly as he changes password from a string of twelve asterisks to ******)
Re:Tell HN: Bash.org Is No More by BuildTheRobots on Thursday January 11, 2024 @09:50AM (#38952896)
(sticking with the obliviousness for a moment,) Would they need to store the plaintext password? Hashing every word typed isn't efficient but it's possible to achieve without knowing the plaintext.

It reminds me of Facebook allowing login even when you've mistyped your password: https://security.stackexchange.com/questions/214814/why-can-...

Re:Tell HN: Bash.org Is No More by GTP on Thursday January 11, 2024 @10:20AM (#38953374)
Yes, that's true. But since HN is famously hosted on a single not-so-powerful server, that would be unlikely to be the employed solution.
Re:Tell HN: Bash.org Is No More by BuildTheRobots on Thursday January 11, 2024 @10:38AM (#38953664)
Considering how laggy the comment box is on reddit, it makes me wonder if they're not already doing something similar, but client-side in js. I guess it would expose the salt though.
Re:Tell HN: Bash.org Is No More by GTP on Thursday January 11, 2024 @11:45AM (#38954699)
Exposing the salt isn't an issue, it can (and should) even be a different one for each account.
Re:Tell HN: Bash.org Is No More by latexr on Thursday January 11, 2024 @01:08PM (#38956129)
> Hashing every word typed

Wouldn’t work if your password contains spaces.

Re:Tell HN: Bash.org Is No More by KETHERCORTEX on Thursday January 11, 2024 @04:24PM (#38959306)
They just hash every substring that can be a password.

Don't write long comments. Show some love to HN's server carrying its O(n^2) burden.

Re:Tell HN: Bash.org Is No More by bbarnett on Thursday January 11, 2024 @01:38PM (#38956637)
But it does! They, instead, hash each letter independently, that's how they can do this.
Re:Tell HN: Bash.org Is No More by svnt on Thursday January 11, 2024 @09:49AM (#38952875)
What actually happens is more complex: when you type a *******, HN tries to log in once for every string in your *******, and then when it succeeds it goes back and replaces that string with a randomized length of asterisks.
Re:Tell HN: Bash.org Is No More by Tainnor on Thursday January 11, 2024 @10:36AM (#38953619)
I love that some 20-30 years after that famous chat somebody still fell for it.
Re:Tell HN: Bash.org Is No More by asztal on Thursday January 11, 2024 @05:34PM (#38960378)
*****? That's amazing! I've got the same password on my luggage!