by miroljub · 2y ago · 0 comments
You can try putting your HN password in a comment, it would be visible only by you, and the others will not see it.
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!
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.
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 *****.
It reminds me of Facebook allowing login even when you've mistyped your password: https://security.stackexchange.com/questions/214814/why-can-...
Wouldn’t work if your password contains spaces.
The only way it can be realistically implemented involves the storage of clear-text user password to enable string replacement during comment submission. Either that or converting user comment to a prefix/suffix table (or something similar) and then hash each item to search for a match. Both option is ridiculously unnecessary.
Anyway, my HN password is ****. I bet it don't work.