I had to walk a user through setting up a firewall (she's remote). I gave her a temporary password to use during the setup figuring I would log in later to change it. She entered the characters in the different order and I can't for the life of me figure it out. I'd rather not hard reset the Firewall because we can't afford the downtime nor are any of the users very tech savvy. I know all of the letters and the length of the password and that's it. Is there any sort of combination application (where I can put my characters in and it will tell me all of the possibilities)?
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

How to make an excel macro that finds every single possible combination of letters in a string of X amount
0
Since you know your letters you can limit the loops:

if you used 12 distinct characters:
``````Code for a-z all combinations, repeat
Sub a2zRpt()
Count = 1
For a = 1 To 12
For b = 1 To 12
For c = 1 To 12
Cells(Count, 3) = Chr(96 + a) & Chr(96 + b) & Chr(96 + c)
Count = Count + 1
Next
Next
Next
End Sub
``````
0
This is for 3 characters.

OK let's modify it a bit - 9 characters long - 8 different chars used (one double)

``````Code for a-z all combinations, repeat
Sub a2zRpt()
Count = 1
For a = 1 To 8
For b = 1 To 8
For c = 1 To 8
For d = 1 To 8
For e = 1 To 8
For f = 1 To 8
For g = 1 To 8
For h = 1 To 8
For i = 1 To 8
Cells(Count, 9) = Chr(96 + a) & Chr(96 + b) & Chr(96 + c) & Chr(96 + d) & Chr(96 + e) & Chr(96 + f) & Chr(96 + g) & Chr(96 + h) & Chr(96 + i)
Count = Count + 1
Next
Next
Next
End Sub
``````
0
Commented:
0

Experts Exchange Solution brought to you by