Generate a safe password that respects user specified constraints.
Obtain a password security score between 0 and 1 based on password length and the presence of special characters, capital letters, and numbers.