12 ms·
I get he's ranting about imprecise terminology, but really, what does this knowledge gain the end user? Maybe I'm missing the point. Users don't care if their p
by mooreds 6y ago
I get he's ranting about imprecise terminology, but really, what does this knowledge gain the end user? Maybe I'm missing the point. Users don't care if their password was hashed or encrypted or stored in an ice freezer in Antarctica.
They care (sometimes, sometimes they don't act like it, see https://www.ieee-security.org/TC/SPW2020/ConPro/papers/bhagavatula-conpro20.pdf https://www.ieee-security.org/TC/SPW2020/ConPro/papers/bhaga... ) that it was compromised.
An end user doesn't have any control or knowledge over the password storage mechanism for any sites, so the best thing is to use a strong random password generating password manager--because that is something the end user can control.
However, for the websites managing passwords, I'd suggest reviewing the NIST guidelines: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-63b.pdf https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.S...
- staticautomatic 6y agoExcept when you hit a website that refuses your auto-generated strong random password, which happens to me with shocking regularity.
- bigyikes 6y agoYour password must contain at least one special character. Except !, that isn’t allowed.
- tdrp 6y agoThe scariest one is when ' is not allowed.
- jniedrauer 6y agoMust include 1 special character, except for the following: ;`'"-
- tdrp 6y ago"Our client-side Javascript should be enough to prevent any SQL injection attempts" /s
- WrtCdEvrydy 6y agoMy favorite one is when it silently removes those characters but doesn't tell you...
- Bedon292 6y agoWorst think about 1password, and lastpass when I uses it, it doesn't let you pick what special characters it uses, despite it being such a common thing on websites. So you have to manually add them, or swap out thing.
- paulryanrogers 6y agoSurprising since Keepass has had that for years
- virtue3 6y agoI just add a random thing to the end of the password that fits the criteria
- smartbit 6y agoEnpass’ password generator has a field were you can enter characters not allowed. Regretfully Enpass doesn’t store this field nor the rest of the complexity rule as part of the password entry. The next time when password has to be changed you have to figure out the underlying complexity rule again.
- dddw 6y agoBitwarden let's you choose
- iso947 6y agoThe old “abchkkunenukzimejienejsidmdjiwknevgjk bgiknhhhnnisplwkslandhgabsndmskalpaapowhsoslxiaiapjsbsnsnaja” is not secure, but “P@55w0rd” is super duper secure.
- other_herbert 6y agoin our app we have a requirement that is similar.. I kicked and screamed and sent them spec documents from the NIST.. no one cared.. we have a max length of 10 chars... that SERIOUSLY hurts... 8 and 10 chars are our current requirements... plus some combination of numbers and special chars... WTFBBQ !!!!111... hypothetically it's "ok" but c'mon..
- yjftsjthsd-h 6y agoI mean, if you insist on a 10-char maximum, then mandating symbols to increase the search space is a good idea, right? (Granted, that doesn't make a 10-char max sane)
- tialaramex 6y agoAllowing symbols increases the search space, but requiring them reduces it. And in practice this effect can be exaggerated when people don't use random passwords but must actually choose a password they'll remember - because what they'll actually do is choose something easy and then shove a symbol in there to meet your requirement. You may well allow 30+ different symbols, or even more, but the users will invariably pick one of a dozen or so that were easiest to reach on their keyboard and they may learn to be shy of characters that sometimes "don't work" such as quote marks and any local currency symbol even if those are easy to type.
- ben_w 6y agoCould be worse. They might write it on a flipboard next to a window. https://grahamcluley.com/plymouth-passport-offices-pitiful-password-privacy/ https://grahamcluley.com/plymouth-passport-offices-pitiful-p...
- munkiefish 6y agohttps://youtu.be/aHaBH4LqGsI https://youtu.be/aHaBH4LqGsI
- waheoo 6y agoYou're not even seeing all the sites that truncate your password down to 6 characters. Hi Westpac.
- mooreds 6y agoThat's the worst, especially when the truncation is silent. Boo!
- RJIb8RBYxzAMX9u 6y agoThis is less annoying than sites that accepts your strong password, except their backend actually couldn't handle it. I love being locked out immediately on account creation.
- dddw 6y agoPassword!Drop!table
- mooreds 6y agoI've had that happen before, but even if you have to degrade your password, at least it is random and not associated with any other password/account. But yes, at that point all you can do is either complain to the website purveyor or vote with your feet (if the latter is an option).
- copperx 6y agoHow can you kick the server if you're not in the datacenter?
- gryfft 6y agoLittle enrages me more, especially when the forbidden special characters betray a shockingly backwards mitigation for injection attacks. [1] https://benhoyt.com/writings/dont-sanitize-do-escape/ https://benhoyt.com/writings/dont-sanitize-do-escape/
- JohnTHaller 6y agoMy favorite is when the website accepts your long random password but then the login fails. Because the set password function truncated the password before hashing it but the login function doesn't do that.
- OneLeggedCat 6y agoThis still happens, in 2020, with breathtaking regularity. Several times a year, a site won't accept my password, so I then start the whole "Will 20 characters work? No, that didn't work. Will 16? Nope... 15? Nope... 12? Nope. Oops I skipped 14... AH YES FINALLY."
- liability 6y agoThis will never change until engineers can be held criminally accountable for incompetence, particularly when personal information is involved. Of course any proposal to ever hold a programmer accountable for literally anything is always unpopular on HN, for obvious reasons.
- _t0du 6y agoBecause it's ridiculous to decide that the bottom of the decision graph should be held responsible for the poor decisions made from above. Engineers should only be held accountable for decisions they made personally. The unfortunate reality is that, a terrifying amount of the time, terrible decisions are handed to engineering teams as required implementation details from managers, executives, product directors, etc. So should engineers be held criminally accountable for their product manager demanding MD5 hashes on passwords?
- liability 6y agoAn engineer should be willing to tell his boss "No, because I would go to jail" If the manager insists anyway, the engineer should be obliged to refuse, even if that costs them their job. Of course management should also be held accountable, but until engineers are forced to have some skin in the game they will continue to be as pliable as wet noodles. Consider this: who better to blow the whistle on management than an engineer who knows they've been given an illegal order?
- Tainnor 6y agoMany password generators have options for such things though, like configurable length, character sets, etc.
- msla 6y agoIf a person ever even considers writing code which could generate either of these error messages: "Your password is too long!" "Your password uses special characters!" ... they are not only incompetent to write code which handles passwords, they have been so misinformed that they are an outright liability. They need to relearn everything they currently know on the subject and start over. Few things in the technical world instantly convey such utter anti-knowledge as the presence of either or both of those error messages in a codebase.
- IggleSniggle 6y agoIf that’s true, can you please share a link to your website so that I can stop using Dropbox and migrate my encoded data to be stored in your password field?
- Zecc 6y agoThey don't encrypt your password, they hash it.
- IggleSniggle 6y agoHrm, yes, good point. So my snarky comment loses its charm, if it ever had any. Still, though, I think it’s reasonable to alert the user if your password exceeds its allocated storage rather than silently truncate.
- gbear605 6y agoSome passwords are too long - I wouldn’t expect any website to accept a gigabyte long password - and I wouldn’t judge a site that doesn’t accepts \0 either.
- tdrp 6y agoI don't remember the math on hashing/bcrypt but isn't this the case that all passwords sort of hash to a fixed length string? Like why even have something like "your bank password must be 8-12 characters" long. Obviously for a gigabyte long it's a bandwidth and hash-computing issue :p
- helmsb 6y agoAlso, the chance that a site will refuse a strong random password is directly correlated to the importance of the account. Case and point, the appointment site for my barber happily takes a 30+ character randomly generated password. My old bank would not allow you to have a password longer than 12 characters and only recognized 4 special characters. That is why they are my old bank.
- greggman3 6y agoOr where their fancy SPA custom animated UX means your password manager can't auto insert a password.
- kop316 6y agoThe knowledge it gains the end user is the confidence that the service I am using actually knows what they are doing. I have often found that if someone uses imprecise terminology, it is a symptom of a bigger issue.
- AceyMan 6y ago> I have often found that if someone uses imprecise terminology, it is a symptom of a bigger issue. What a spot-on observation. Maybe this is why I am always so pedantic, even when I tell myself that it's not necessary in said context. Subconsciously, I'm implementing this connection, and I can't turn it off. relevant MCU quotation, from Civil War, [ROGERS/CAPT] Sometimes... I wish I could. [STARK] No you don't. [CAPT] Yeah, you're right - I don't.
- quercusa 6y agoI've found it enormously valuable at the beginning of projects to hash out (erm...) a glossary so we know that everybody has the same understanding of the terms we use.
- Gene_Parmesan 6y agoI think the idea behind the article was to explain why people are encouraged to stop using passwords from Site A if Site A gets 'hacked,' even on Sites B, C, D, etc. It's not just that encryption was broken on one site. It's that now that password has been matched up to a hash, so its strength is kaput. I do think the message got a little lost in the post though, with the follow-on discussions of salting, bcrypt vs. md5, etc.
- mooreds 6y agoBut hasn't the password + salt been matched up, not just the password? Or is his point that you don't know, so you need to treat it like the password is compromised (which I agree with). But the password is compromised either way (hash or encryption). I'm confused, maybe I need to go back and read it again.
- larssorenson 6y agoCompromising the hash and salt, since they must be stored close together, makes it possible to identify if the salted hash is a password in a corpus of previously compromised passwords. An attacker can do Hash(PW, Salt) for all PW in a list of leaked/cracked plaintext passwords. If they've guessed your password and it's shared across multiple services, lateral compromise. Salting only prevents the rainbow table attacks, where an attacker precomputes all possible hash values for a known keyspace (like, say, 8 alphanumeric length passwords) and just look up for a match. Encryption is concerning because it necessitates the ability to decrypt since they're often inverse operations of each other, and presumably there's a shared key stored somewhere to do the comparison, which means it's likely trivial to recover the password compared to hash cracking and undermines any strength or complexity benefits. This also likely points to other bad behaviors utilizing this "feature", such as helpfully emailing you your plaintext password when you forget it.
- tialaramex 6y agoRainbow Tables are a specific innovation in time-space tradeoffs (precomputation) rather than the name for all such attacks. The specific clever trick in Rainbow Tables is the observation that rather than storing hash(password) : password 5f4dcc : password c2fe67 : jimmy 25d55a : 12345678 ... we can build a function that takes the output from hash(password) to deterministically create a new candidate password, let's call this function pass(hash), and then chain the hash and our new function together as many times as we want. This lets us store much less data, while doing more work during our look-up phase. hash(pass(hash(password))) : password 153dfc : password 92fe87 : jimmy 213eea : 12345678 Now if I find a hash 92fe87 in a password hash file, I do not learn that the password was jimmy, instead I need to compute pass(hash(jimmy)) and that's the password I was looking for. And if I find 39a4e6 which isn't in my list, I calculate hash(pass(39a4e6)) and discover that's 213eea, then I look this up in the table and I discover the password I need was 12345678. Obviously real Rainbow Tables don't just run the hash twice like this, but instead some fixed number of times chosen by the creator to trade off less space versus more work to find a password.
- RandoHolmes 6y ago> I get he's ranting about imprecise terminology, but really, what does this knowledge gain the end user? Reminds me of an experience I had in college. I was working phones over the summer at a call center and had this software developer call in. This was during the runup to Y2K, and I mentioned the "Y2K bug" and he starts ranting about how it's not a bug. And I'm like, yes I understand it's not technically a bug, but most non-technical people don't know the difference. I've never understood why people are like this with non-technical folks. If you're having a technical discussion with another technical person, then yes, the distinction absolutely matters. But to non-technical people? Who exactly benefits from that?
- ben_w 6y agoI agree, to an extent. Yes, the average person isn’t going to care that, for example, (original) Doom and Marathon are 2.5D engines rather than 3D engines, nor the technical differences between CDs, DVDs, or Blu-ray. On the other hand, the general water-level of knowledge is frustratingly low at times: I’ve received customer support which insisted that they couldn’t register proof of identity to activate a SIM card for an iPhone, only for Android; a salesperson saying iPhones couldn’t be used in those cheap strap-a-phone-to-your-face 3D headsets; and a previous boss had to tell off one of their own customer support team for saying their product didn’t support Firefox when the only browser installed on the customer support team’s computers was Firefox.
- numpad0 6y agoI’ve seen a horror story in the form of “[HELP] sysadmin wont give encryption keys” post to a forum. Mid-2000s, non-English so I’m paraphrasing. The sysadmin resigned, no tech person anymore. The boss got a lost password inquiry from a customer, panicked, called former admin for help, not a single word he understood, hit the forum. And in the forum post he said the admin “wouldn’t cooperate”, “very adamant and confrontational” about “giving out encryption keys” to “decrypt valuable customer database we can’t afford to rebuild but might have to” and how it’s driving the company towards bankruptcy over last few days etc etc. Eventually forum members realized he’s talking about a password reset, and convinced him it’s actually impossible to recover hashed password nor it’s necessary which is the point, you just verify identity and let them change the password etc etc, but it took hours for the community, on top of a day and half or so of tense hours for the boss guy’s company, to just understand the situation and act accordingly. So I think it might be worth communicating how passwords work every once in a while.
- kungato 6y agoI mean you could also pay someone who is educated to handle the situation
- alxlaz 6y ago"Our former system administrator is extremely uncooperative and very confrontational" or "we need to decrypt valuable customer data that we can't afford to rebuild and this is driving us towards bankruptcy" are the kind of words that make most educated people very much unwilling to help, no matter how much money you promise them ;). It's not a matter of principle, it's a matter of headaches. It's very unlikely that a customer like that would pay enough to make it worthwhile.
- mumblerino 6y agoThere’s plenty of people willing to work at any price point. Just because a $200/hr consultant dismisses the request, a $10/hr one can probably still figure it out. However if the alternative is bankruptcy I think there IS money to be spent on the solution.
- wesleywt 6y agoI care as non technical person to know the difference between encryption and hashing. And to know why easy passwords are useless. This was an extremely informative article.
- tim333 6y agoAs an end user who uses Chrome and who's mum does too it means you can tell her to use Chrome's suggested secure password rather than 'P@ssword' or similar. And my mum who's not really techie does care because she gets emails from Yahoo and the like saying sorry we've been hacked yet again please reset your passwords and gets in a panic over it.
- afarrell 6y agoThe problem is not that the term is imprecise. To say "We can securely check your password." would be imprecise. The problem is that the term is _inaccurate_ because it is _overly precise_. --------------- When you find yourself arguing over details you find pedantic, then it is a sign that you either: A. Are failing to realize why some detail actually _does_ matter in that context. B. Are using overly-precise terms and should see if you can "go up one abstraction layer", likely by asking "why does someone care?"