Generates password based on user parameters.