r/programming • u/usmanzafar • Feb 27 '11
A jquery plugin telling how strong is your password. The stronger the password more the naked girl you will see!
http://www.nakedpassword.com/135
u/kaddar Feb 27 '11 edited Feb 27 '11
According to this, 'Password1;' is more secure than 'cvbxpoedutpretkgD'.
Whoever made this needs to work on their understanding of metrics of password security.
45
u/ruinercollector Feb 27 '11
looks like it just looks to see if you have one of each class of character (number, symbol, capital letter, lowercase letter.)
29
u/personalcomputer Feb 27 '11
function getPasswordStrength(password){ var score = 0; //if password bigger than 4 give 1 point if (password.length > 4) { score++; } //if password has both lower and uppercase characters give 1 point if ( ( password.match(/[a-z]/) ) && ( password.match(/[A-Z]/) ) ) { score++; } //if password has at least one number give 1 point if (password.match(/\d+/)) { score++; } //if password has at least one special caracther give 1 point if ( password.match(/.[!,@,#,$,%,^,&,*,?,_,~,-,(,)]/) ) { score++; } //if password bigger than 12 give another 1 point if (password.length > 8) { score++; } return score; }I want to see one of these that actually does do a dictionary check, that would be pretty impressive.
55
32
Feb 27 '11
//if password bigger than 12 give another 1 point
if (password.length > 8) { score++; }
wat
→ More replies (2)15
u/dmwit Feb 27 '11
Yeah, I think this code should really not be commented. It's clear enough, and, as shown, the comments just add a burden to the programmer to keep them in sync with the code.
2
u/jyper Feb 28 '11
better then
def isPasswordStrong?(password) if password.length > 5 && password.length < 10 return true else return false end end1
u/willcode4beer Feb 28 '11
I want to see one of these that actually does do a dictionary check, that would be pretty impressive.
also, convert so called l33t sp33k to normal letters before running the dictionary check
4
u/Inaimathi Feb 27 '11 edited Feb 27 '11
Yeah, the code's pretty simplistic, but what do you expect from a simple jQuery plugin?
Ideally, what you'd do is apply the basic metrics they've got, then compare the password to various dictionary-attack corpora. Call it a hunch though; I doubt this would be quick enough to pull off client-side.
7
u/Poltras Feb 27 '11
what do you expect from a simple jQuery plugin?
Simply a better regex? jQuery has nothing to do with it.
6
u/two_hundred_and_left Feb 27 '11
What, a regex that recognises dictionary words?
→ More replies (3)5
u/drhodes Feb 27 '11
it might not need to match whole words to be useful,
[it, mi, ig, ht, no, ot, ne, ee, ed, to, ma, at, ch ...]
just common pairs.
1
23
u/1338h4x Feb 27 '11
12
u/Madsy9 Feb 27 '11
About 42 trillion years for my ssh password.
19
9
u/Ecco2 Feb 27 '11
Or .2 seconds for the owner of that website you just sent your password to :-D
7
Feb 27 '11
[removed] — view removed comment
4
u/robertmassaioli Feb 28 '11
Or you could have just unplugged your Ethernet cable and run the program in a google chrome incognito tab and closed it before plugging the cable back in... I'm pretty sure that would have been secure too and required less investigative work.
→ More replies (1)1
u/Amunium Feb 27 '11
Wow, a quintillion years for my primary ones. I just use "ThePasswordIs#!", replacing # with any short word I can remember. And I didn't give anything away except for my formula.
4
u/phillipmarlowe Feb 28 '11
Yes, you did. You clearly stated your password is:
ThePasswordIsany short word I can remember. And I didn't give anything away except for my formula.!
That's gotta be a bitch to type out, though.
1
5
3
u/ThatFuckingGuy Feb 27 '11
302 years for cracking aaaaaaaaaaaa
2
u/archiminos Feb 28 '11
With enough 'a's you get 'About 177 septendecillion years'
→ More replies (1)2
u/hello_good_sir Feb 28 '11
password1 is 117 days
my password (essentially random letters and numbers) is 3 days
1
u/Darkfold Feb 28 '11
Is your random password short? Less than 8 characters and the exponential doesn't really kick in, so you get little benefit from the extra char choices at each position.
(26 lower case + 10 digits)9 = 101559956668416 combinations when 9 characters long.
(26 lower + 26 upper + 10 digits + 30 special)5 = 6590815232 combinations when 5 characters long.
Surprising really, but worth checking the maths.
→ More replies (1)1
u/rntksi Feb 27 '11
Try entering a password comprised of all spaces. It fails the check. Or all spaces and a dot, or any symbols.
1
u/jonesin4info Feb 28 '11
Nifty! My common password takes 38 days, the rest of my passwords take between 15thousand years, and 64 sextillion years. I guess I've been doing a good job.
2
1
u/omegabobo Feb 28 '11
I kept adding characters and got it up to several vigintillion years... but I was reading it as virgintillion
1
3
u/Edman274 Feb 27 '11
I guess the quickest way to truly determine password strength would be to compress the string and see how much it compresses, and to have a small seed of common dictionary words and a means to expand them using rules.
http://www.reddit.com/r/compsci/comments/dowhm/how_do_you_calculate_password_entropy/c11wbmt
1
Feb 27 '11
[removed] — view removed comment
2
u/Edman274 Feb 28 '11
In almost all real-world cases, 100 percent certainty isn't necessary for passwords to be secure in the real world, because the adversary doesn't have 100 percent perfect knowledge about the scheme. In other words, I may have my password be 20 digits of pi starting from the 10,000th place (with low kolmogorov complexity), but the attacker (not knowing that) would attack it as if it were bruteforce.
I guess the point I'm trying to make is that these litmus-testing password things aren't really helpful in any sense because even though no method can truly figure out password complexity, they don't even try. Length test, dictionary matching and compression test are much, much more useful than just "Does it have three special characters? Okay! Well, three exclamation points are SECURE!" testing. Again, sure, the honest-to-god security is impossible to determine, but real world considerations don't really make that a big point to worry about.
1
u/sharkeyzoic Feb 28 '11
#!/bin/bash DICT=/usr/share/dict/words SIZE0=`cat $DICT | gzip -9 -c | wc -c` SIZE1=`(cat $DICT; echo $* ) | gzip -9 -c | wc -c` echo $(( $SIZE1 - $SIZE0 ))only joking ...
→ More replies (1)
211
u/snarkhunter Feb 27 '11
If you type in "password" it should turn into Rosie O'Donnell or something.
62
Feb 27 '11
She takes off her shirt for password.
104
u/Fearless_fx Feb 27 '11
She also takes off her shirt for, "money". Seems accurate enough.
24
u/KakunaUsedHarden Feb 27 '11
She doesn't take her shirt off for cock though, so she does have some standards. Or maybe it's just me.
52
27
8
1
u/apodesu Feb 27 '11
This thing has a bug, when I mash $, she keeps taking it off but stops at the panties
2
u/ploshy Feb 27 '11
She takes off her shirt and pants for "12345". I guess it's not perfect just yet...
1
10
1
1
1
38
Feb 27 '11
A 5 character password with an upper, lower, number and symbol gets a full naked lady, but a 52 character password with all lowercase only gets about halfway.
(33+26+26+10)5 << 2652
4
u/Bitruder Feb 27 '11
This assumes that you know the entire character domain for each position in the password which doesn't seem to be too plausible.
21
u/steve_b Feb 27 '11 edited Feb 27 '11
It still doesn't matter. Even 1005 << 2652. These "password strength" algorithms always aggravate me. An 8 character, all lowercase password is still 5 times more secure than a 5 character password using a 256 character alphabet.
Edit: Oops - I screwed up my math; I originally was using a 100 character alphabet for the 5 character password (which was 20x less secure than a lowercase 8-char one) then changed it to 256 to reflect a "best case" scenario for passwords with crazy characters in them, and failed to pay attention to the reciprocal when I did the ratio.
2
Feb 27 '11
Nitpick: 2565 ~= 5 * 268. But 9 characters would give you about 5 times the strength.
But that's true, a 5x256 password isn't particularly strong. The main advantage it has is that you're unlikely to run up against a set of rainbow tables or a brute force cracker that uses unprintable characters.
3
u/duckedtapedemon Feb 27 '11
Is that actually true about the rainbow tables not including unprintable characters, or are you really a 1337 HAX0R thats about to crack my password of %$3b*?
5
4
Feb 27 '11
Most passwords aren't going to include characters you can't readily type, so it would be silly to waste a bunch of space in your rainbow tables that can be more profitably spent in more likely regions of the search space.
Security, whether enforcing or attacking, is about finding the weakest link. A person with a weak password is more likely to make other mistakes. If somebody's using unprintables in her password, she probably would be a pain in the ass to try to exploit.
I wouldn't rule out the possibility of somebody making such rainbow tables, but I would count it pretty low on the threat list.
→ More replies (1)2
3
Feb 27 '11
However, most brute force attacks will try out all lower case passwords first since they are by far the most common.
→ More replies (21)1
u/watermark0n Feb 27 '11
Assuming that the 8 characters is 8 random characters and not a word. I think they just assume that an all lower case password is a single word, which is stupid. They definitely should check for susceptibility to dictionary attacks and calculate it this way otherwise.
1
u/Cyrius Feb 27 '11
An 8 character, all lowercase password is still 5 times more secure than a 5 character password using a 256 character alphabet.
Not if your 8 character, all lowercase password is 'password'.
95
u/wteng Feb 27 '11
Nice try, phisher.
7
Feb 27 '11
Passwords don't do a lot when you don't have a username to associate them with.
3
u/eldigg Feb 27 '11
Everyone who commented on this site is a user-name. Many reuse their user-names and passwords as well.
3
u/SnowdensOfYesteryear Feb 28 '11
It's possible to get the browser's history and grep thru for sites like yahoo/gmail which list the username as part of the page title
1
2
u/majoogybobber Feb 27 '11
It's client-side javascript; no data is being sent to the server, smart guy.
1
u/FeepingCreature Feb 28 '11
Client side javascript can send asynchronous server requests easily, wise guy.
2
u/majoogybobber Mar 01 '11
firebug that shit and you'd know it's sending zilch, brainiac!
→ More replies (1)1
133
u/wackywaddles Feb 27 '11
And here I hoped that my 30-character mix of uppercase, lowercase, numbers, and symbols would warrant some lesbo action.
75
14
4
u/aglidden Feb 27 '11
I was thinking she should take her skin off or become a skeleton, but I like your idea better.
2
69
Feb 27 '11
being the sad person i am, i didn't even test any of my passwords, i just tried to create as random a string as possible in the hope i could see boobies.
119
77
Feb 27 '11
Giving away your real password to a website on reddit would just be stupid.
15
Feb 27 '11
indeed it would. i remember for a while there were sites going around that would check your credit cards and/or bank accounts for fraudulent activity, and people would actually input their details. they were, of course, scams.
24
4
1
52
u/NSFW_Full_Stop Feb 27 '11
43
u/MelechRic Feb 27 '11
Hey, the 1980's called and said it wants its videogame porn back.
3
1
7
2
u/daedone Feb 27 '11
uh, what exactly is the difference between 4 & 5
1
u/MercurialMadnessMan Feb 27 '11
can you not see the panties?
1
u/daedone Feb 27 '11
3 has panties. #4 and #5 are identical from what I can see. The numbering starts at 0.
→ More replies (4)
18
u/plexxer Feb 27 '11
I call shenanigans - ABC123 gets you to second base.
22
35
u/Inaimathi Feb 27 '11
From the codebase on GitHub
//if password bigger than 12 give another 1 point
if (password.length > 8) { score++; }I chuckled.
15
34
12
u/Ecco2 Feb 27 '11
Why did I land on a SugarCRM page ? I guess some sysadmin is going to get fired on monday :-D
1
12
u/total_looser Feb 27 '11
this looks totally legit. if only it had a .ru domain, i would try out my real passwords on it
11
10
u/kubalaa Feb 27 '11
Inspired by the recent post on Pixel art scaling algorithms, here are the results of upscaling the image:
2
14
7
41
Feb 27 '11
Wow, how impressively sexist.
14
u/morobishi Feb 27 '11
to be fair, there's one for the girls. however, the naked guy has a tiny member.
6
Feb 27 '11
I don't see any option to change it to a man.
14
u/SoundOfOneHand Feb 27 '11
It deduces your sexual preference from your browser history.
9
Feb 27 '11 edited Feb 27 '11
I always suspected I was a raging lesbo... finally I can be sure.
EDIT: I accidentally a word.
4
u/bitt3n Feb 27 '11
actually if your username suggests you're female, it shows a man whose masculinity is linearly dependent on the algorithm's certainty of your sex.
for example, 'CupcakePower' will get you David Hasselhoff with extra chest hair
2
u/Chippsapoloosa Feb 27 '11
Hey, I want to fix this plugin by putting the woman's clothes on then sitting her at a computer (at the strongest password, she is a developer). I need help with the last graphic, anyone down? Would like to take this one back for the ladies.
-6
Feb 27 '11
Urgh? Really? There is some actual sexism that goes on around these parts, but this isn't it.
Do you remember the huge billboard featuring David Beckham in his undercrackers that made a stir last year? Did you see tonnes of men crying their eyes out about sexism? Men like nude ladies; ladies like nude men. Chill the fuck out.
9
u/merzbow Feb 27 '11
Password fields are used by women as well as men.
→ More replies (1)1
Mar 01 '11
Question: Would you be claiming that it was sexist if it was a naked man instead?
→ More replies (1)3
Feb 27 '11
So because there existed an ad with David Beckham once, showing naked ladies in a password field isn't sexist.
This argument is somewhat lacking in persuasiveness.
If you want to argue that this isn't sexist, though, tell us this: Why is it a naked woman? Why not a man?
→ More replies (6)
6
30
u/ruinercollector Feb 27 '11
alienate-women-frommysite-1.2.3-alpha-blah.etc-min-small-fuck.js
2
u/Chippsapoloosa Feb 27 '11
Hey, I want to fix this plugin by putting the woman's clothes on then sitting her at a computer (at the strongest password, she is a developer). I need help with the last graphic, anyone down? Would like to take this one back for the ladies.
1
2
u/omgplsno Feb 27 '11
You forgot to include its-okay.im-a-neckbeard-who-wasnt-ever-planning-on-ever-dealing-with-women-anyway.js
1
u/watermark0n Feb 27 '11
Why has neckbeard come to mean this? That makes no sense. This is a neckbeard. If you wore that, I doubt you would have success with women, but nobody wears it. It doesn't immediately bring to mind nerdy and unwashed when I see it.
→ More replies (13)
5
Feb 27 '11
Why do we not just use full sentences as passwords instead of a bunch of nonsense characters? You can remember a full sentence much more easily than 10 random characters, and a decently long sentence seems like it'd be just as resistant to dictionary attacks.
Seriously. This isn't the 80s and we aren't using DES anymore.
10
Feb 27 '11
Having complete sentences as passwords is a terrible idea! How will YouTube users ever log in?
2
1
u/smallblacksun Feb 27 '11
I use passphrases sometimes, but poorly implemented sites can cause problems. If they truncate the password, your very secure password turns into something that consists of dictionary words and spaces.
4
10
u/EntropysChild Feb 27 '11
oh that's so clever you sexist computer nerds ...
1
u/slashgrin Feb 27 '11
This submission = bad thing
Sexism = bad thing
Computer nerd = good thing
I think this submission is inappropriate for this subreddit, but conflating nerdiness and sexism doesn't really help, either.
3
3
u/Odusei Feb 27 '11
This is the 21st century equivalent of those dirty pens crusty old men used to laugh over.
3
u/abadidea Feb 27 '11
Do I really need to point out what demographic (hint: it's 50% of humanity) is automatically going to dismiss your site as trash? And no, offering naked men too won't fix it.
3
18
4
4
u/Hackenslacker Feb 27 '11
US$1 will get her down to her underwear.
US$10 gets her topless.
US$100000 gets her nude.
2
u/Booray Feb 27 '11
I was half expecting the hair to vanish towards the end and then immediately regretting what I just did
2
2
u/morobishi Feb 27 '11
try this: http://howsecureismypassword.net/
2
u/telldrak Feb 27 '11
try entering the konami code on that site.
1
2
u/salgat Feb 27 '11
I hate password detectors who simply look for lower, upper case, and a number. As if Abc12345 is a strong password.
2
2
u/Green-Daze Feb 27 '11
hunter2
3
u/EvilMonkeySlayer Feb 27 '11
All I'm seeing is *******. It'll do the same if you type out your social security number too.
2
10
u/niggerdick Feb 27 '11
CAN WE GET A CLOSEUP OF HER PUSSY BECAUSE I DON'T THINK IT'S WORKING?
0
Feb 27 '11
[deleted]
8
u/koew Feb 27 '11
Great. I had to get up and walk about 10 meters (33 feet for you imperial scum) untill I could enjoy that. I was not happy about walking back either.
2
2
0
3
2
u/the_andrei Feb 27 '11
A neat idea, but most people will be smart enough to input a bunch of symbols to get to 5.png, then revert to their old dumb password anyway.
1
1
1
1
1
1
u/walrus99 Feb 27 '11 edited Feb 27 '11
Got to say after all the "passwords is to short" jokes..... Password is too small
1
1
1
1
u/eric22vhs Feb 27 '11
Protip: Password length gets her clothes off, numbers get her underwear top off, caps get her underwear bottom off.
1
Feb 27 '11
Some critical criticism: Password when only numbers are said to be strong when in fact they are the first ones to get cracked.
1
1
1
1
1
1
u/ex_ample Feb 28 '11
Uh, okay but by the time you try typing a bunch of stuff to see her naked you don't know what the password is and can't copy it out. So yeah.
1
1
1
1
1
1
u/arnedh Feb 27 '11
Of course, it stores your password attempts along with the IP and some cookie content for all the passwords. For instance your gmail, reddit, facebook ids, on the off chance that you used this service to check your actual passwords. And if you use an old version of IE, it also takes a copy of your Ctrl-C buffer: what was the last thing you copied? Not secret, I hope?
At leisure, it gets your location, and it brute forces those passwords that were stored as hashes. Then this information gets sold to the Chinese and Russian mobs.
No need to worry about the American criminals - they already have whatever they need because of Microsoft, Linksys, Cisco, echelon, ISPs...
2
0
Feb 27 '11
[deleted]
2
u/arnedh Feb 27 '11
[citation needed] if you need to be absolutely sure that this is the case.
[citation needed] for the absence of these things if your main priority is to be sure that this is not the case.
Your call. (and mine. and everyone's.)
0
1
u/daedone Feb 27 '11
have at me, my passwords are different on every site I go to. Gawker just reminded me to rotate them
-3
u/The_Dipster Feb 27 '11
Oh man, this is awesome! Just wait until the Christian Mothers Against Movies With Violence hear's about this! (FYI: The C.M.A.M.W.V. is the fictitious organization I made up, that is responsible for all of the over-censorship in modern society).
1
u/kataire Feb 27 '11
Reminds me of a video game. Anybody remember what the protest group in Postal² was called?
0
Feb 27 '11
It's all wrong. People who insist on punctuation, different case, and such shit don't understand combinatorics at all.
For others - try calculating how long will it take to try all combinations and guess a password of 12 random letters and number. A-huh.
OK, I'll save you a calculator session: 3612 = 4 738 381 338 321 616 896
1
Feb 27 '11
That'd be 6212
1
Feb 27 '11
All lowercase are ok. And I can remember 3-5 of them just fine without writing them down.
→ More replies (1)1
u/daedone Feb 27 '11
http://howsecureismypassword.net/
302 years for lower case, assuming no rainbow table.
1
1
Feb 28 '11
500 million attempts per second? Well, that's pretty optimistic. And "assuming no rainbow tables" is not a "big assumption" since, well, all important passwords are salted these days.
This all, of course, implies that you have some way to obtain hashes and not just brute-forcing the front end. Now - that one can obtain hashes is the big assumption.
121
u/xxon Feb 27 '11
Downside: If the registrant is at work, he or she will be forced to use simple passwords.