I am currently working on yet another revision of a script I wrote which generates random passwords based off of user specified criteria.
While I haven't come across this yet, I am currently stuck while trying to add the ability to eliminate three or more duplicate characters from the generated password. By duplicate characters, I don't just mean duplicate letters aaa, BBB, 111, or ### but I also mean similar types of characters. For example CYQ, bte, 735, and ^@( would all be in violation of the password policy.
I'm assuming that I would want to use some form of a regex to perform this kind of check, but I'm not too familiar with them so I could be wrong. Can anyone offer some advice as to where I should be looking to add this function?
Thanks for the repeated help.