Re: brute-force estimation



"Elenhil" <elenhil@xxxxxxxxx> writes:
Say, I have a 20 character long password consisting of latin
characters (capital and lower-case), numbers and basic punctuation.
That is roughly 80 symbols to play with.

How many combinations one must look through from 1 to 20 (the exact
length is unknown) with unoptimized brute force?

Call the number X. So


X =
80**1 1-character passwords +
80**2 2-character passwords +
80**3 3-character passwords +
.... +
80**20 20-character passwords

That is:

X = 80**1 + 80**2 + 80**3 + ... + 80**20

So:

80*X = 80**2 + 80**3 + ... + 80**21

which means:

80*X - X = 79*X = 80**21 - 80**1 (all the middle terms cancel out)

which means:

X = (80**21 - 80**1) / 79
= 116751544770313617822784810126582278480
= 1.1675 * 10**38 approx. This is around 2**126, which is plenty.

I'm not a math man myself, but my friend tried to calculate it and
got 3535316142212174320 combinations ( that is 80!/(20!(80-20)), via
a n!/(k!(n-k)! formula where n is the number of symbols and k is
the maximum length of their combination).

That's the wrong calculation--it tells you how many ways you can pull
20 characters out of a bag holding 80 of them.
.



Relevant Pages

  • Re: [4e] RE: Design and Development - The Zombie
    ... D&D characters, beyond a certain level, are ... Out of 12 or so people, we have 4 groups: those who play ... Resource management and the ability to exaust your mojo, ... In comparing, say, a Warblade ...
    (rec.games.frp.dnd)
  • Re: OQFTCI98 Game 5 Rounds 2-3: SNL, Italian lit
    ... characters from "Saturday Night Live". ... His play "Accidental Death of an Anarchist" ... According to St. Matthew" and "The Canterbury Tales". ... years he had to spend in a godforsaken southern Italian village. ...
    (rec.games.trivia)
  • Re: Y&R -- Plum Storyline Amazing
    ... I DO NOT think the actors 'see' it. ... Actors universally agree that they'd rather play the ... NEED a balance of nice, trustworthy characters who can think, learn, ... those characters is what makes the actions of the adversaries compelling ...
    (rec.arts.tv.soaps.cbs)
  • Re: give some flexibility to the standard 25-point buy method
    ... I hardly ever play low-Int characters - I'd actually be quite interested ... Dumb play is about blindly relying on the dice to overcome the ... the same stats. ...
    (rec.games.frp.dnd)
  • Re: Y&R Tuesdays Show
    ... for not a very good reason except corporate mandate. ... I find Victor compelling when he's in cold/angry mode...but I ... Many actors/actresses have said that they'd much rather play evil than ... long-tenured characters that don't learn from their mistakes. ...
    (rec.arts.tv.soaps.cbs)