string combination
-
Unique compared to what? Are you talking about a function that will return a new string every time it's called? Or do you have a list of strings you don't want to duplicate?
The fastest way what I think will be using TimeStamp. 1) Get the current Time (in Milliseconds ) 2) Append it to string or if comfortable, use the same as a string... UuidCreate() is a good option but fastest will be timestamp + YourSignature -- CHEERS!!!
-
UuidCreate() will create you a unique GUID which you can turn into a 36 character string http://msdn.microsoft.com/en-us/library/aa379205(v=VS.85).aspx[^]
Thanks for your reply. But I want the all possible comabination of given string of specific length. I am developing a password recovery utiluty so I need to pass all string combination to match the desired string. Can you suggest me the fastest one to do so.
-
The fastest way what I think will be using TimeStamp. 1) Get the current Time (in Milliseconds ) 2) Append it to string or if comfortable, use the same as a string... UuidCreate() is a good option but fastest will be timestamp + YourSignature -- CHEERS!!!
You mean the fastest in 'code development time', I guess.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
You mean the fastest in 'code development time', I guess.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Almost all utilty find the password string match within few seconds. I want to do the same. So I need to pass string to match. So suggest me fastest method to generate string. Please suggest something meaningful.
That's not your original request (at least in the motivation). Why should we encourage your hacking intentions?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
That's not your original request (at least in the motivation). Why should we encourage your hacking intentions?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]You are right... I think the intension is a bit shabby... ha ha ha ha. Caught!!! This guy needs to enumerate all possible string. Brute Force with Alpha Numerics takes a lot of time + Ethics please.
-
Thanks for your reply. But I want the all possible comabination of given string of specific length. I am developing a password recovery utiluty so I need to pass all string combination to match the desired string. Can you suggest me the fastest one to do so.
-
You are right... I think the intension is a bit shabby... ha ha ha ha. Caught!!! This guy needs to enumerate all possible string. Brute Force with Alpha Numerics takes a lot of time + Ethics please.
-
Almost all utilty find the password string match within few seconds. I want to do the same. So I need to pass string to match. So suggest me fastest method to generate string. Please suggest something meaningful.
the trick to doing it quickly is to not generate all possible strings. the trick is to generate likely strings first. "dictionary" is the magic word. if the dictionary fails, then you have to do it the hard way: aaaa aaab aaac aaad ... ZZZZ
-
Hey John... Always try to be smart while seeking answers of indirect questions. :cool: You have been already answered :|. BTW In Advance Login system (used in most of the places where you see "User Name" and "Password" currently), the no. of guesses you can make is always limited. So Brute force really shouldn't be your approach. The Probability of you cracking the password is 1/((All the case sensitive alphabet + Numbers + Special Characters) ^ (length of the password - which is unknown). If you are still trying - Read this: - This guess will be +ve if you get the correct password in "almost The Best case" i.e. you must be able to guess it in 3 chances (approx). (Advice) Try something else... Best Super Computers if used will take days to crack one strong password by Brute Force. And yes, Always be ethical!!! PS: - The above message has no relevance to the initial question.