News for hackers. Stuff that matters.
Re:Xkcd Password Generator by colanderman on Thursday August 11, 2011 @10:15AM (#2872927)
Don't forget sites that require: "your password MUST contain at least one number, one uppercase letter, and one of the following characters: !, @, #, or $, but not %, ^, &, or *". I slap my forehead at how counterproductive these requirements are.
Re:Xkcd Password Generator by Lexarius on Thursday August 11, 2011 @10:31AM (#2873001)
This is why, for my lab's password changer, the requirement for short passwords is simply that it must have one upper, one lower, one digit, and one none-of-the-above (and be at least 8 characters).

If you have a long password (at least 16 characters), all other requirements are waived so that you can use passphrases.

Re:Xkcd Password Generator by dpark on Thursday August 11, 2011 @10:36AM (#2873039)
Wow, sanity in password requirements? Do they also avoid the silly mandatory 30-day password change?
Re:Xkcd Password Generator by lhnn on Thursday August 11, 2011 @02:27PM (#2874109)
I hope so; that's annoying and counterproductive.
Re:Xkcd Password Generator by onemoreact on Thursday August 11, 2011 @12:13PM (#2873470)
Forcing one or more digits has little value. You are better off with 1 uppercase one lower case and 2 non alphabet characters. (Users are very likely to be replacing a letter with 1,0 so 2options * 8posistions = 16 possibility's = fail.)
Re:Xkcd Password Generator by pedro_a on Friday August 12, 2011 @04:41PM (#2879163)
Which is exactly the sort of terrible rules xkcd is criticizing (paraphrasing glenra).

Instead of 4 extra enforcements you could add 8 extra characters.

Your entropy is (somewhat simplified)

One 8 letter word: 15 bits

1 uppercase = 3 bits (or even just 1 bit, people capitalize the first letter)

reversing 2 rules above: 1 bit

replacing two characters at random places: 8*7/2 = 4.8 bits

inserting 2 random non alphabet characters: 40^2 = 10.6 bits Total: 34.4

The entropy of three medium difficulty words is log(4000^3) = 35.9

Instead of memorizing K!ybo4rd it could be mykeyboardisblue.

Re:Xkcd Password Generator by bryanlarsen on Thursday August 11, 2011 @12:44PM (#2873650)
The requirement for many of my website is simply that it "must not consist solely of lowercase letters". (as well as a minimum length).
Re:Xkcd Password Generator by glenra on Thursday August 11, 2011 @03:32PM (#2874378)
>must not consist solely of lowercase letters

Which is exactly the sort of terrible restriction xkcd is criticizing.

Re:Xkcd Password Generator by bryanlarsen on Friday August 12, 2011 @01:21PM (#2878183)
A space is not a lowercase letter, so the xkcd password would pass my test.
Re:Xkcd Password Generator by pedro_a on Friday August 12, 2011 @04:20PM (#2879070)
Then the space would be "the obeisance to the stupid website piece". Note that the entropy of "correct horse battery staple" is only one bit more than "correcthorsebatterystaple".
Re:Xkcd Password Generator by Dove on Thursday August 11, 2011 @03:52PM (#2874464)
Yeah, a lot of my passwords look like "securesecretpassphraseA1!"

There's the secure piece, and there's the obeisance to the stupid website piece.

Re:Xkcd Password Generator by andyking on Thursday August 11, 2011 @11:33AM (#2873287)
I have a couple of domains registered with 123-reg.

To prevent unauthorised access to your account your password must contain 8 characters.

Wait, what? They're right, too. You can't have 7 characters and you can't have 9.

Re:Xkcd Password Generator by wgx on Thursday August 11, 2011 @11:43AM (#2873327)
Yes a friend was complaining about that recently.

It's a bruteforcer's dream.

Re:Xkcd Password Generator by webfusion on Friday August 12, 2011 @05:42AM (#2876605)
Hi

I work on behalf of 123-reg.

We are working on changing this in future control panel updates.

Regards,

Ricky

Re:Xkcd Password Generator by Simucal on Thursday August 11, 2011 @10:27AM (#2872981)
What could the reasoning behind those requirements possibly be?
Re:Xkcd Password Generator by Lexarius on Thursday August 11, 2011 @10:37AM (#2873045)
Usually the symbols involved are used by SQL or some other layer, and the programmers insert the password directly into the query string because they don't know any better. This leads to SQL injection and other issues.

So rather than discovering the correct way to do things, they try to prevent you from using any characters that might be involved in an SQL injection.

In some cases the guys on the backend know what they're doing, but the requirement can still be passed down from on high from some manager who absorbed the practice from another project.

Re:Xkcd Password Generator by enduser on Thursday August 11, 2011 @10:45AM (#2873086)
If anyone knew what they were doing the uncrypted password would be nowhere near a SQL statement.
Re:Xkcd Password Generator by dpark on Thursday August 11, 2011 @10:39AM (#2873056)
They're trying to force users to use those characters in an attempt to enlarge the space passwords are drawn from. It doesn't work very well, of course. Instead of "password", you just get "Password1!". That said, I might make the same choice (for short passwords) if I were implementing password policy.

Edit: If you meant the "but not %, ^, &, or *" requirement, that's an indication that the devs don't know how to use prepared statements or at least escape properly.

Re:Xkcd Password Generator by rmc on Thursday August 11, 2011 @10:37AM (#2873044)
Those requirements are there for the people who try putting just their name or "password" or their 4 digit ATM PIN as their password. For very short passwords, only having alphabetical (not even alphanumeric) passwords is terrible. Those requirements are there to prevent some really stupid passwords.
Re:Xkcd Password Generator by eru on Thursday August 11, 2011 @10:37AM (#2873042)
Covering your ass by disallowing passwords like "password".
Re:Xkcd Password Generator by Simucal on Thursday August 11, 2011 @11:16AM (#2873216)
No, I meant specifically why they would allow certain special characters and not others.