Live data from Hacker News

Limiting passwords to 12 characters is "secure enough"

forums.stardock.com

51–60 of 111 posts

Re: Limiting passwords to 12 characters is "secure enough"

#51
Passwords are bullshit. We should have a start-up about having a better way of keeping your digital identity other than hundreds of logins/passwords, but obviously everyone is too busy with figuring out better ways of sharing lolcats.

Not that lolcats are bad. They are good. It's just they aren't fun anymore once your identity is stolen. Or your mom's.

Re: Limiting passwords to 12 characters is "secure enough"

#52
post #40
post #32

Earlier quoted context omitted.

> Get a whole heap of passwords from random.org. I suggest /dev/random or /dev/urandom, as it doesn't involve a third-party. You can xor with data from random.org, if that makes you feel better. > Forget the password to the encrypted text file? Throw your life away and start a new identity. Just print out the plaintext of your password text file, and store the piece of paper somewhere reasonably secure. I say `reason…

I'm not too fond of printing out passwords. If I forget, and I'm extremely forgetful, that's just a disaster waiting to happen. I know my brain and I know it can't be trusted with physical security. Also, I'd rather use /dev/urandom instead of simply /dev/random. Considering my aversion to using a stranger's computer to login to my accounts and the fact that I never use an open WiFi connection for anything without To…

Not really the issue, but /dev/urandom is weaker than /dev/random, it is urandom which never blocks (try "hd /dev/random" and note that it blocks, then jiggle your mouse a bit and it will come back to life)

Re: Limiting passwords to 12 characters is "secure enough"

#53

Any user input needs to be filtered, sanitized, validated and limited. Please be my guest and pass any user input to your magic hashing function, don't cry about it later because due to some special circumstances / framework bug / language bug / buffer overflow / extra hidden utf char, your magic function opens a huge security hole. oh oops.

Um what? If your hashing library hasn't been tested with a arbitrary sequences of bytes you have bigger problems than limiting user input to 12 characters.

Re: Limiting passwords to 12 characters is "secure enough"

#54

Passwords are bullshit. We should have a start-up about having a better way of keeping your digital identity other than hundreds of logins/passwords, but obviously everyone is too busy with figuring out better ways of sharing lolcats. Not that lolcats are bad. They are good. It's just they aren't fun anymore once your identity is stolen. Or your mom's.

TechCrunch disrupt had a few solving this problem.

I'm sure they could use your support :-)

Re: Limiting passwords to 12 characters is "secure enough"

#56
If your password is 100,000,000 characters long, that's simply a waste of bandwidth, CPU time, space on the disk * millions of users * 1000s of iterations = money flushed down the toilet. And remember web servers have timeout parameters spread across half a dozen config files. You're just asking for trouble. Not worth it. To protect one self-important nitwit's video game password? Even your million character password could be sniffed or worse, the attacker might offer a hot apple pie with ice cream.

Re: Limiting passwords to 12 characters is "secure enough"

#57
post #3

Ah, yes, there's nothing quite like a condescending representative entirely out of his depth telling you to "do the maths" to show your customers that you really care about their security and privacy. I wish you good luck in getting them to listen to you.

I like the way that he implies that you don't have the right to complain about the 12-character limit at Stardock unless you complain to your bank about the 4-digit credit card pin limitation first.

Re: Limiting passwords to 12 characters is "secure enough"

#58

As I see it, character limits aren't so much about security, as just a dumb way to be hostile to the user. All of my passwords are site-specific unique passwords generated by a password manager. I don't care if you store plain-text passwords, because if someone steals passwords out of your database then they already have all the access that my password to your site would've given. But if a site rejects the password t…

"But if a site rejects the password that my password manager generated (16 chars [a-zA-Z0-9])...it's generally a pain in the ass"

No, that just means your password manager sucks and is out of touch with the real world. Any good password manager lets you quickly generate passwords of any length.

Re: Limiting passwords to 12 characters is "secure enough"

#59
post #28
post #20

Earlier quoted context omitted.

Again, the point isn't about whether 12 is enough. It could have been 64 and the point would still stand. The OP's point is that limiting password length (to anything less than 1000 or so) is usually done to be able to set a maximum length on the password column of a database. Password hashes, on the other hand (including bcrypt), produce fixed-length hashes, regardless of the input size.

bcrypt has a 50 char limit. You could always prehash(sha256) the password before passing it to bcrypt.

It's 72 actually. I thought it was 56 as mentioned on the original [?] BCrypt website[1]. A thread[2] on security/stackexchange discusses a workaround for the 72 char limit. See https://gist.github.com/4690368 for a simple test case that shows the >72 char truncation.

The source provides a hint:

    /* Schneier specifies a maximum key length of 56 bytes.
    * This ensures that every key bit affects every cipher
    * bit.  However, the subkeys can hold up to 72 bytes.
    * Warning: For normal blowfish encryption only 56 bytes
    * of the key affect all cipherbits.
    */
[1] http://bcrypt.sourceforge.net/

[2] http://security.stackexchange.com/questions/21524/bcrypts-72...

Post reply on HN