anxietyaesthetic/generatepassword.py ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Python app that generates random safe passwords.

I want it to let me choose the password length, and whether to include uppercase letters, lowercase letters, numbers, and symbols. It should make strong passwords by default, not something easy to guess, and it should avoid obvious patterns or repeated characters when possible.

Please make it simple to run from the command line, and if it makes sense, also give me a tiny reusable function I can import into other scripts. It would be nice if it can generate a few passwords at once, and clearly show the result in a clean format.

If you need to check current Python best practices for secure random generation, go ahead and look them up online. Keep the code easy to read and make sure it works out of the box.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab