in reply to Minimal password check, again
you may expand the test for alpha-numerics and split the string into chars, insert into a hash and count the keys, if the # of keys is < than your acceptable unique chars then reject.
-Waswas
Edited: I have to agree with L~R abnout the repeats not effecting the strength of the password, really the only things that effect that are:
The types of characters allowed in the passwordThe minimum lengththe maximum lengthallowing users to use dictonary words in their password