News for hackers. Stuff that matters.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Monday March 04, 2019 @02:25AM (#19299431)
If giving out the length hurts anything, there's enough going wrong that you should probably assume it's already compromised.

Unless there's something fundamentally wrong with the password, a public length of n is almost as secure as a secret length of n, and significantly more secure than a secret length of n-1

Never get into the specifics of a password, but explaining the basic structure should be a tiny impact and well within your margin of safety, or you didn't make a good enough password to start with.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by dTal on Monday March 04, 2019 @04:28AM (#19299925)
While you're correct mathematically, I still think it's a good habit to give zero information about your password. If you attempt to estimate the information leakage with every "hint", sooner or later you'll slip up.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by z29LiTp5qUC30n on Monday March 04, 2019 @07:55AM (#19300838)
My view is your secrets should be secure even if the attacker knows everything about how they are generated and used. For example: My password is 8192 characters long, leveraging only the ASCII character set (except \n\r\t\0) It is changed every 28days at 11:05am It is only used on exactly 1 website and the username on that website is also only used on that website and randomly generated as well.

Good luck (Tell me how and where I can make this stronger)

Re:The password “ji32k7au4a83” has been seen over a hundred ... by tripzilch on Tuesday March 05, 2019 @01:05PM (#19312588)
> Tell me how and where I can make this stronger

Make it 8193 characters long, change it every 27 days at 11:04am, but most importantly: use it on exactly 0 websites.

Good luck

Re:The password “ji32k7au4a83” has been seen over a hundred ... by FabHK on Monday March 04, 2019 @08:35AM (#19301062)
With your username, I actually believe you...
Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Monday March 04, 2019 @02:56PM (#19304707)
Telling someone your password is 8 characters long and memorable vs telling them it is 8192 characters long and unrecallable are two entirely different things.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by asveikau on Saturday March 09, 2019 @05:25PM (#19348903)
This is a very hilarious post. Bravo, sir, or brava, madam. (Revealing your gender would likely be a security risk - if you leave that unspecified it doubles the space of possibilities!) I don't know what joyless types would downvote you.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Monday March 04, 2019 @03:07AM (#19299593)
I'm willing to believe that if you could help me understand a bit more why that is so.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by infogulch on Monday March 04, 2019 @03:28AM (#19299663)
Think of it this way: assume someone is trying to brute force your password. For simplicity let's say they know nothing about it, except that its characters are randomly drawn from a 50 character pool. As they guess passwords starting with 1 character, each added character takes 50x longer than all previous guesses put together to guess all possible passwords of that length. Put another way, if they knew the length beforehand, it would only save them from testing about 2% of the overall possible combinations.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Monday March 04, 2019 @03:01PM (#19304761)
Gotcha. I guess I was unclear about what "almost as secure" meant in this context.

So whether providing your length is a tangible security leak or not is essentially a function of the size of your character pool, because if your password is short enough for n-1 to contain a significant percentage of possible combinations then it's probably already short enough to brute force anyway.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Monday March 04, 2019 @04:57PM (#19306004)
That's not right. You can make a secure password using only ABC as your character pool, if you make it 60 characters long. In that case the percentage of combinations covered by n-1 is a full third of the n character combinations, and your attacker can get a 25% speed boost by you revealing the length. But it's still more secure than a 59 character password, and far more secure than a 57 character password, and all of them are extremely secure.

A good way to look at it is to measure the password in bits of randomness. At most, revealing length can shave off one bit. For any reasonable character set it shaves off a small fraction of a bit. And one bit does not make the difference between good or borderline or bad.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Tuesday March 05, 2019 @01:18PM (#19312729)
A 25% speed boost is what I would call a significant percentage. Especially at 60 characters. My statement holds up.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Tuesday March 05, 2019 @04:51PM (#19314587)
What you're missing is that a 59 character password (with secret length) is extremely secure, despite the even larger speed boost.

If you worry about any speedup in password cracking that is less than an order of magnitude, your password was too close to failing to start with. Make your password 5% longer, which will make it at least 20x slower to crack, and then you won't have to care if "20x" gets reduced to "15x".

You may say "It's not harmless to give up 25%. What if I give up 25% several times? That could make even a good password become insecure." but there's a limit to how much speedup someone can get from knowing the structure of your password. And the best way to evaluate the strength of a password is to assume that all the structure is public. So I can say that my typical passwords, being 20 mixed-case letters and numbers, all have a security of 2^119. It's possible that an attacker that uses the wrong algorithm would have to guess even more, but I'm not just worried about a clumsy attacker, I'm also worried about a moderately-high-quality attacker. It's a bad idea to depend on that extra .1 bit I could get with this character set, or that extra .4 bits I could get with a smaller character set. Just assume the length is known.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Wednesday March 06, 2019 @04:41PM (#19323151)
I'm confused about how that has anything to do with disproving my conjecture that whether whether providing your length is a tangible security leak or not is essentially a function of the size of your character pool, because if your password is short enough for n-1 to contain a significant percentage of possible combinations then it's probably already short enough to brute force anyway. You're just redefining what "secure" means.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Wednesday March 06, 2019 @05:20PM (#19323501)
I think we disagree about what a "tangible leak" is. I don't see it as tangible because it's eating into a tiny margin that you never should have counted in the first place. You do see it as tangible because it might make the attacker's job faster by several percent.

And that's fine, we can have different opinions on that part.

But "probably already short enough to brute force" is definitely not right. That percentage depends entirely on character set, not the length of your password. If your password is just numbers, then n-1 always has 10% as many combinations, whether your password is 5 characters long or 200. If you meant "probably already weak enough to brute force" that's not true either. Lots of passwords with mixed case and numbers and symbols are very short and pretty weak. Lots of passwords with only letters are very long and quite strong because they're made-up phrases. You can't guess the strength of a password just by knowing the percentage of [length n-1 combos] / [length n combos].

Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Thursday March 07, 2019 @07:46AM (#19327554)
But 10% of 100 is magnitudes different from 10% of 10,000. The smaller the length, the more each percent (in terms of entropy) matters when we're talking about complexity as a function of brute force time.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Thursday March 07, 2019 @12:00PM (#19329682)
And by that metric losing 2% of 1000 is a far bigger problem than losing 10% of 100,000. I agree that length is the most important factor, I'm just saying that character pool isn't very important to final security.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Thursday March 07, 2019 @07:29PM (#19334044)
Only if you have a sufficient length of n.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Thursday March 07, 2019 @09:11PM (#19334555)
You need "sufficient" n no matter what your character pool is, and knowing the character pool of a password doesn't let you reliably predict if n is sufficient.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Friday March 08, 2019 @09:37PM (#19344116)
I wasn't making that claim.
Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Saturday March 09, 2019 @02:14AM (#19344934)
Then I have absolutely no idea what you were trying to claim in the second sentence of https://news.ycombinator.com/item?id=19304761

But we don't seem to be resolving anything so I'll just hope you have a good week.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Saturday March 09, 2019 @03:45PM (#19348378)
You indirectly state that I claim "knowing the character pool of a password lets you reliably predict if n is sufficient."

Please point to the part of my statement which reflects this idea.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Saturday March 09, 2019 @05:23PM (#19348895)
"a function of the size of your character pool, because if your password is short enough for n-1 to contain a significant percentage of possible combinations then it's probably already short enough to brute force anyway"

This seems to say that a small character pool, aka "n-1 containing a significant percentage of possible combinations", implies that your password is "probably already short enough to brute force".

So small character pool means that "probably" the password is short/weak.

I'm saying that a small character pool does not imply that a password is "probably" short/weak.

And to be very clear: Using the size of the character pool to say it's "probably" weak is a form of "reliably predict[ing] if n is sufficient".

What am I misreading?

Re:The password “ji32k7au4a83” has been seen over a hundred ... by kakarot on Sunday March 10, 2019 @03:44PM (#19353947)
> What am I misreading?

> So small character pool means that "probably" the password is short/weak.

I really don't know how you came to that conclusion. I never claimed any dependence between the character pool length and password length. They're obviously completely separate properties.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by Dylan16807 on Sunday March 10, 2019 @11:12PM (#19356377)
You said that if a password of length n-1 "contains a significant percentage of combinations" compared to a password with length n then "it's probably already short enough to brute force".

Right?

That percentage comes entirely from the character pool.

So character pool -> percentage -> probably short enough to brute force.

What am I reading wrong? The only assumption I made is "compared to a password with length n", because what else would you be comparing length "n-1" to. Otherwise it's a direct quote.

Re:The password “ji32k7au4a83” has been seen over a hundred ... by rustyfe on Monday March 04, 2019 @07:02AM (#19300596)
We'll take 60 possible characters (alphanumeric with caps and a few special characters). The summation 1...N of 60^x is (60/59) (60^N - 1). Known length is 60^N. If we assume N is big enough that the minus one isn't important, you can see going from known to unknown only increases the guesses by a factor of 60/59!