pwgen
pwgen copied to clipboard
Adding crypt to pwgen output
New -e flag to output proposed crypt string with password.
Why only sha256crypt? And may I also suggest to add a "brake" and sleep for 1s before it prints out the result?! Just my personal 2cents...
On 2023-08-22 12:24-0700, Matthias Kraft wrote:
Why only sha256crypt? And may I also suggest to add a "brake" and sleep for 1s before it prints out the result?! Just my personal 2cents...
Only because that was what I found useful. Updated. What was the reason for the 1s sleep?
Ed
To not create a tool that could easily be used to create thousands of encrypted passwords in a second. Granted, people who know what they are doing have that already, but "script-kiddies" really don't need that. And while thinking of it again ... what is the use-case anyway?
On 2023-08-27 02:24-0700, Matthias Kraft wrote:
To not create a tool that could easily be used to create thousands of encrypted passwords in a second. Granted, people who know what they are doing have that already, but "script-kiddies" really don't need that.
I might be missing something, why is the crypt bad here?
And while thinking of it again ... what is the use-case anyway?
I frequently run useradd followed by passwd to set the pass. Sometimes introducing typos or whitespace. Taking the crypt form to use with useradd -p or usermod -p is more helpful I believe.
Ed