On 18 Dec 2016, at 21:56, Jason A. Donenfeld wrote:
tr -dc "[:graph:]" < /dev/urandom | head -c 32This 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.
_______________________________________________ Password-Store mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/password-store
