infectedwarelol/pwgen ? reverse-engineered prompt
Reverse engineered prompt
Build me a small command line password generator in C++20 that feels simple to use and has no runtime dependencies.
I want it to print a random password by default, and let me control the length, how many passwords to generate, and which character groups are allowed. It should support turning off lowercase, uppercase, or digits, adding symbols, removing ambiguous characters like 0, O, 1, l, and I, and excluding any custom characters I give it. I also want an option that makes sure each enabled character group appears at least once, plus a way to show the estimated entropy and a simple strength label.
Please make the errors friendly, send them to stderr, and return a nonzero exit code when the input is invalid. Add a help message, a few tests, and a clean CMake build so I can compile and run it easily. Use current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit