Password field strength

Is there a function for a password field to display a strength indicator?

You could use a custom validator and indicate this.There is an example of how custom validators work.