Jump to content
Science Forums

Really stupid math question


IrishEyes

Recommended Posts

Ok, I feel really out of my element in this forum, because I hardly ever post here, but here goes.

This one is for Turtle, C1ay, Buffy, or any of you other number-crunchers that can help my sleep-deprived brain on this...

 

background: trying to understand basic computer security, using a 'password' as an example.

 

How many different charactrer combinations are there for a 4 character password? And what is the equation for that?

 

There are 26 lower case letters, 26 uppper case letters, 10 numbers, 32 special characters, for a total of 94 possible characters, right? At least that's what it looks like on my keyboard...

Link to comment
Share on other sites

Ok, I feel really out of my element in this forum, because I hardly ever post here, but here goes.

This one is for Turtle, C1ay, Buffy, or any of you other number-crunchers that can help my sleep-deprived brain on this...

 

background: trying to understand basic computer security, using a 'password' as an example.

 

How many different charactrer combinations are there for a 4 character password? And what is the equation for that?

 

There are 26 lower case letters, 26 uppper case letters, 10 numbers, 32 special characters, for a total of 94 possible characters, right? At least that's what it looks like on my keyboard...

Well, many programs don't allow certain characters like / or . For 94 characters though, there is 94*94*94*94 4 place combinations since each of the 4places can be any of the 94 possible characters. That's 78,074,896 possibilities.

Link to comment
Share on other sites

Heh, heh, you're probably looking for a simple answer, eh?

 

Okay, lets specify the problem further to simplify: lets say you are going to ONLY allow 4 character passwords, neither shall they be less than 4 nor more than 4, 4 shall be the number and not greater and not less ("oh stop channeling the Python chaps, B!")

 

so you correctly counted 94 possible characters ("neither shall it be a chinese keyboard..."), although some of those special characters are disallowed, but lets say its 94.

 

SO

 

You can have 94 for the first character and for each of those characters

You can have 94 for the second character and for each of those characters

You can have 94 for the third character and for each of those characters

You can have 94 for the fourth character

 

and so you have:

 

94*94*94*94 = 78,074,896 combinations.

Lots huh!

 

It gets more complicated if you allow more or less characters, but the idea is the same...

 

Combinatorically,

Buffy

Link to comment
Share on other sites

Thanks guys. That's what I thought, which is kinda scary since I am not a number-brain person.

Nemo is writing some type of program that goes along with this, but came up with some HUGE number combinations the first time he ran it. I didn't think the numbers should be so big, and neither did he, so we're trying to figure it out.

You have, as usual, been a great help.

And thanks for K.I.S.S., Buffy... That's just the way i like my math...very understandable! :)

 

(Oh ,my, new smileys as well! :lol: )

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...