in reply to Brute Force Algorithm with Perl reg exprs?
Given that you know the set of characters allowed as part of the password, then I suspect that some nested-loop approach (having those characters in an array) would probably constitute the expected solution.
That said, I'm sure it would be easier in perl than in java. For example, if the password length is N and the length of the "hint" substring is M, you could loop over all possible character sequences of length N-M, and for each of those, insert the hint string at each juncture within the sequence (offset 0, offset 1, ... offset N-M).
(Update: in other words, what Zaxo said :)
|
|---|