in reply to Re^2: gettin back crypted password
in thread gettin back crypted password

Actually, it's 95 characters. 126-32=94, but the space character is valid, as is the ~, subtracting on the included lower bounds, rather than on the first excluded lower bound, means your answer is off by one.

How many valid characters are between '2' and '6' inclusive? 6-2 = 4, but the valid characters are 2,3,4,5 & 6. 5 of them.

-Scott

Replies are listed 'Best First'.
Re^4: gettin back crypted password
by thor (Priest) on Mar 09, 2005 at 19:46 UTC
    My fault. Though my error in logic was slightly different. When we use the digits 0-9, we're doing base 9+1=10. Here, we want to use the digits 32-126, except shifted down by 32, so we subtract 32 from both endpoints to get the range 0-94. Thus, we want to use base 94+1=95 arithmetic. I'll update my original node. Thanks!

    thor

    Feel the white light, the light within
    Be your own disciple, fan the sparks of will
    For all of us waiting, your kingdom will come