Password Complexity requirements

Sorry if this is already possible but I couldn’t find out how to change it or enforce it.

I would like to force both service and customer portal passwords to meet a certain complexity rule.

Eg. minimum characters/ symbols etc