[PATCH] stop using pwgen
Allan Odgaard
lists+pass at simplit.com
Sun Dec 18 19:13:26 CET 2016
On 18 Dec 2016, at 21:56, Jason A. Donenfeld wrote:
>> tr -dc "[:graph:]" < /dev/urandom | head -c 32
>
> 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).
This does not work on macOS if encoding (`LC_CTYPE`) is set to UTF-8, as
the chance of getting valid UTF-8 from `/dev/urandom` is near zero, so
`tr` will complain about illegal byte sequence.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161219/05ced892/attachment.html>
More information about the Password-Store
mailing list