Hi
im trying to come up with something, which may or may not be possible, on defining a set of "rules" (defined by user) for a password complexity rule.

I want to make sure that when a user creates a password, that it will be passed through the user defined complexity rules and see if they validate.

how can one create such a complexity "engine" which is defined by the user?