News for hackers. Stuff that matters.
Re:Show HN: Random Password Generator by stephenr on Sunday June 04, 2017 @02:10AM (#14480110)
How does this compare to say pwgen?
Re:Show HN: Random Password Generator by ankitpati on Sunday June 04, 2017 @02:28AM (#14480151)
pwgen

1. Focuses on memorable passwords, and restricts itself to fewer ASCII characters than rpg.

2. Makes no attempt to preserve entropy; waste of entropy is potentially unbounded. This is a performance concern when reading from /dev/random, and a security concern when reading from /dev/urandom.

3. Has large source code spread across multiple files. Good for reusability of components, not so good for auditability and security.

4. Requires Perl and sed.

Re:Show HN: Random Password Generator by stephenr on Sunday June 04, 2017 @03:21AM (#14480271)
1. That's what the `-s|--secure` flag is for

3. Is 1000 lines in 6 files really "large"?

4. On Debian at least, it just requires Libc.

Re:Show HN: Random Password Generator by ankitpati on Sunday June 04, 2017 @04:26AM (#14480406)
1. Sorry, didn't know about that. Just took a cursory glance through the source code.

3. 126 lines in 1 file is still an order of magnitude smaller.

4. The source has a Perl and a sed script, although they are not used in the password generation.

(2) is still a concern, especially on servers and embedded computers.