prompt_agent ¶ PromptAgent ¶ password_req_to_policy staticmethod ¶ password_req_to_policy(password_req: list[str]) Small function that receives password requirements as a list of strings like "Length(8)" and returns a corresponding PasswordPolicy object.