This generates a password using PHP. It randomizes a string of letters, numbers and special characters.
w7PBD{!-4uI9
a–z
A–Z
0–9
!@#$%^&*()_+-=[]{}|;:,.<>?
Every password contains at least one character from each of the four groups, which satisfies most "must contain" rules. The other characters are picked from all 88 at random, using PHP's cryptographically secure random_int(), and the order is then shuffled.
random_int()
Length matters more than anything else. Each extra character from an 88-character set multiplies the number of possible passwords by 88. As a guide:
Should I reuse a generated password? No. Use a different one for every site, and keep them in a password manager.
How do I store a password in my own app? Never store it as plain text. Hash it, as the password hash tool shows.