this post was submitted on 23 Aug 2023
86 points (96.7% liked)

Programming

17489 readers
205 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

Why do so many companies and people say that your password has to be so long and complicated, just to have restrictions?

I am in the process of changing some passwords (I have peen pwnd and it’s the password I use for use-less-er sites) and suddenly they say “password may contain a maximum of 15 characters“… I mean, 15 is long but it’s nothing for a password manager.

And then there’s the problem with special characters like äàáâæãåā ñ ī o ė ß ÿ ç just to name a few, or some even won’t let you type a [space] in them. Why is that? Is it bad programming? Or just a symptom of copy-pasta?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 15 points 1 year ago* (last edited 1 year ago) (6 children)

I hope you're using a password manager, I recommend bit warden if not.

Password requirements are all attempts at getting people to introduce entropy into their passwords. The length the characters the not allowed characters the allowed characters. All about adding entropy

Restrictions on allowed characters tend to be based on legacy systems and the input state allow. So if you have an input system that only has Latin characters, it would be foolish to allow non-Latin characters into a password, because then people could get stuck unable to login. So typically they reduce to the safest set of characters that all of their systems use. And for some of the older systems that parse passwords, some of the Meta characters could be problematic.

Password length is also down to legacy systems. If you have an old school Solaris system somewhere in your back end, that truncates password fields at 15 characters. Then 15 characters is the max.

[–] [email protected] 4 points 1 year ago (1 children)

I agree. Bitwarden is open source and also provides a pretty good user experience. Now that passkey support is also coming, I like it even more. Currently a premium member. 10€/year isn't alot for a good service.

[–] [email protected] 2 points 1 year ago (1 children)

Plus you can self host if you want the save the $10 a year, but its worth it to support the ecosystem

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

Yes. Exactly. I don't know why anyone would prefer anything else over Bitwarden if they want a online password manager.

[–] MagicShel 3 points 1 year ago (1 children)

It feels like a lot of sites are taking active measures to block the use is password managers, too. I hate those sites. Why I'm the hell would you do that???

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

Example please? This has not been my experience

[–] MagicShel 4 points 1 year ago (1 children)

Mainly financial sites, in my experience. I also have problems logging into Mastodon, because if I manually type my user and password I get logged in but if I use Bitwarden or even copy/paste it fails.

But also every site where you type in the user name and then submit and it takes you to enter the password - I use a lot of custom emails to avoid spam so I may not remember my username for a given site, but Bitwarden won't recognize it as a login page (much bigger problem on mobile, which is where I do most of my stuff).

[–] [email protected] 2 points 1 year ago

It's your browser. You can install JavaScript or a browser extension which disallows the no paste input field. So that you can always paste in.

The financial institutions that implement that they're trying to guard against local copy and paste password theft. Any program can have access to the clipboard. So I understand why they do it, and I understand why it's annoying.

For financial institutions I highly recommend using something like a Fido 2 key. I'm partial to the yubikey bioseries.

[–] jadero 4 points 1 year ago

Prairie Centre Credit Union.

After years of complaining, they finally did something about their hopelessly insecure authentication, only to completely bork it.

Bitwarden could open the site, but couldn't push the login info. They prohibited pasting, so I had type everything by hand. And they couldn't even get that prohibition right, because I discovered that I could type a character then CTRL+V to paste, then HOME, DEL.

All of that is written past tense, because it was the last straw. I took my banking elsewhere, despite the fact I now have to drive 2.5 hours if I need to talk to someone in person.

[–] [email protected] 2 points 1 year ago

BitWarden seems a little dumber at detecting password update submissions than LastPass. Same with detecting when there's a login field on a page. Really, webdevs should do the most simple-stupid thing and give those fields predictable names like "old_password"/"new_password"/"new_password_retype". No reason to get creative here.

That's about it. I switched out of LastPass for a reason and I'm not going back.