Commits
- Commit:
8fa71bde67d13d4db5e95a8eef71dc8f8ecfe8e5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pwg: drop -u from the usage, there's no such option
- Commit:
61b3aef3ae1eb23a5e7b0c549834f2e92d6ecd44
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rewrite pwg in perl; fix diceware-style generation issues
After a discussion with Alexander Arkhipov turned out pwg had some major
issues:
- `sort -R' is non-standard (although quite popular)
- `sort -R' is not required to employ good randomness
- `sort -R | head -nX' has less entropy than a true diceware (not all
words have the same probability)
So, rewrite it in perl where it's easier to roll an arc4random-esque
function on top of /dev/urandom. randline() employs the same algorithm
used by arc4random_uniform().
The new diceware generator code was based on a sample code provided by
Alexander Arkhipov, thanks!
- Commit:
b0639dc6bb3d6f9f51f9e4688c7588bafaca2aac
- From:
- Omar Polo <op@omarpolo.com>
- Date:
pwg: guard against possible flag-injections
- Commit:
fb0a6924c39af7fb02d03272961d56adb4c3e664
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- Commit:
ee89c9f13862af202295b29031eb7cb52a102e88
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add pwg: password generator