[PATCH] stop using pwgen

Jason A. Donenfeld Jason at zx2c4.com
Sun Dec 18 15:56:45 CET 2016


Hey,

On Sun, Dec 18, 2016 at 3:02 PM, ilf <ilf at zeromail.org> wrote:
>> Here's a simple way to generate passwords from /dev/random directly in
>> shell:
>> tr -dc "[:graph:]" < /dev/urandom | head -c 32
>> We could also use "alnum" instead of "graph"

This is indeed the most suitable way of doing things. It ensures the
reduction is done correctly ("pick and discard" technique), and it
allows for the user to override the character set (via environment
variable, naturally).

I'll get this shipped somewhat soon. Thanks for your feedback.

Jason


More information about the Password-Store mailing list