pwgen icon indicating copy to clipboard operation
pwgen copied to clipboard

Adding crypt to pwgen output

Open edneville opened this issue 1 year ago • 4 comments

New -e flag to output proposed crypt string with password.

edneville avatar Aug 01 '23 17:08 edneville

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...

makr avatar Aug 22 '23 19:08 makr

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

edneville avatar Aug 23 '23 17:08 edneville

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?

makr avatar Aug 27 '23 09:08 makr

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

edneville avatar Aug 29 '23 07:08 edneville