3 ms·
Complexify - a jQuery Plugin to ACCURATELY Gauge Password Complexity
- hsmyers 15y agoNot a perfect metric as he admits, but a great deal better than nothing. One thing that has bothered me from the beginning is the problem of the user's retention of the information. How do we do a min/max of sufficient complexity to deter cracking but allow the user to remember the password in question? This last is one reason that I've kept up interest in bio-metric efforts for security.
- danpalmer 15y agoI always find alternatives to password security interesting, but I don't think any are actually feasible at the moment. We need to realise that passwords are here to stay for a long time, and we need to promote the use of strong passwords that will last a long time. "8 characters with a number" - the criteria many normal users consider a good password, is just not good enough any more in this ago of $2.50 an hour for an EC2 instance with a few graphics cards.
- citricsquid 15y agoSomeone humour me, why does password complexity really matter? Password complexity doesn't prevent phishing, password complexity doesn't prevent social engineering which are in my experience the 2 biggest issues. Password complexity only really prevents brute forcing, but any system that allows you to hammer it with 100, 1000 or 10000 requests isn't going to be secure anyway. It also goes some way to preventing a password being cracked if the hash is stolen, but that shouldn't be an issue if proper security practices are followed. The only other possibility is that complex passwords can't be read over the shoulder or memorised, if someone sees "p4ssw0rd" it's easy to remember, "P$()\£\(\FDDFA" isn't. The only real value in complex passwords that I can see is that it makes users think "my password is only 10% secure? I must try harder at security!" but do many even think that? I pay no attention to the complexity meters sites have... So what am I missing? The way I see it the only real security is a password manager with unique passwords for every account. Surely encouraging that is better than wasting time telling a user if you think their password is secure or not?
- danpalmer 15y agoIf the site you use the password on gets their database hacked, someone can easily start to brute force passwords. Also, sites getting their databases hacked is not uncommon. As for your other point, using a password manager is good, but not always practical. I have an algorithm I use so that I know all of my passwords, but they are different. Sites that require you to have a number in it, or a capital letter, or something like that are doing the wrong thing and promoting poor passwords. People think "if I add a number on the end its far more secure" when it isn't. This provides a far more accurate measure so that sites can enforce a minimum complexity which promotes good passwords.
- citricsquid 15y ago> If the site you use the password on gets their database hacked, someone can easily start to brute force passwords. Also, sites getting their databases hacked is not uncommon. If a sites database is hacked then you can assume their entire site is compromised, in which case whether or not they find out your password is moot because if you use real security and every site has a unique password you risk nothing if they do crack it. If you use the same password for every site cracking is the least of your worries, what if a website is breached and the login system is replaced with a system that stores your password? What if you're phished? What if your computer is stolen and someone just checks your saved passwords? No matter how complex a password is if it's used on multiple websites it's insecure.
- danpalmer 15y agoI would totally agree, and this is why I use a different password for every site. However, I am in the small minority and we have to face the fact that most people use one or only a handful of passwords, and these people have a very poor idea of the criteria for a good password, mainly because so many sites have poor guidelines, and poor policies (like max 16 chars, no punctuation, etc).
- citricsquid 15y ago
- ElliotH 15y agoOnly real issue I can see is that a length 10 string of random lower case letters is given the same rating as a 10 letter long dictionary word (whereas ofc the dictionary word would be cracked first).
- danpalmer 15y agoYep, and I did actually put at the bottom that this does not have any indication of how crackable it would be with a dictionary attack. Unfortunately I don't think that's feasible.
- mmastrac 15y agoYou could potentially 'compress' the dictionary into a bloom filter. You'd have a chance of false positives (ie: a word looks like a dictionary word), but that's probably acceptable in this case.
- Kwpolska 15y agoXKCD approves. http://xkcd.com/936 http://xkcd.com/936
- ThePinion 15y agoThis is better than pretty much all similar projects I've seen. Might implement it somewhere. My usual password for sites gets 46%, which I guess I'm fine with.. The password I use for my TrueCrypt password easily gets to 100%, so I'm cool with that.
- danpalmer 15y agoI was annoyed that my password (which would take ~1x10^30 years to brute force) gets a low score on every site with one of these because it doesn't contain a number. This is my answer. Passwords are judged on their complexity properly rather than a naïve interpretation of complexity. If you do implement it somewhere, let me know where. Also fork and contribute if you want.
- kgen 15y agoA fifteen letter password that is a mixture of letters, numbers and symbols is only 56% complex? That's bonkers. What's the point of measuring complexity if you aren't going to be able to remember the password?
- danpalmer 15y agoThe complexity is based on the minimum required to be valid (~44%) being an 8 character password with upper, lower and numbers. That is really the absolute minimum anyone should be using now I think. As for your password scoring 56%, that's not too bad. But adding more characters has more of an effect that adding a wider range of characters. This is how it should be.
- byoung2 15y agoIt depends on what the password is for. I think the more complex passwords are appropriate for root passwords or databases, but for user passwords, you would have to educate users that anything above a certain threshold (say 30%) is good enough. My attempt fJ6&$h12@ was 40% and $Y8th&t%k^! was 48% and these are way more complex than most people need to secure email or log in to a web app. Above a certain level, and they'll write it on a sticky note.
- danpalmer 15y agoThose two passwords aren't too bad, but they aren't amazing. They are only 9 characters and length matters far more than the character sets you include. This is the big misconception many users have, and it's promoted by all the password strength meters that get this wrong. Complexify is my attempt at providing a better metric.
- chc 15y agoPasswords don't have to be unmemorable to be hard to crack. For example, "Can you remember this?" has 87% complexity and "Bet you can remember this one" has 100% complexity.
- ericax 15y agoTry 52 "1"s. You get a password with 100% complexity.
- danpalmer 15y agoThat is also a 52 character password. I'm betting no one wants to try brute forcing 20+ character passwords at the moment. While it is a very contrived example, it's also not as bad as it seems for security.
- jrgnsd 15y agoI started typing in a password, and then thought that this is an easy way to harvest passwords that people think is hard to crack.
- danpalmer 15y agoFeel free to have a look at the javascript, see what's going on in the page, or watch network traffic.