3 ms·
I use "apg". apg -a 0 -n 1 -m 14 -x 14 -M NCL -a lgorithm 0 is "pronounceable". 1 is "random chars". -n umber of passwords to generate -m inimum and ma
by LeoPanthera 11y ago
I use "apg".
apg -a 0 -n 1 -m 14 -x 14 -M NCL
-a lgorithm 0 is "pronounceable". 1 is "random chars".
-n umber of passwords to generate
-m inimum and ma -x imum length
-M specifies what types of characters to use. N = Numbers C = Capital letters L = Lowercase letters. You can also add S for punctuation.
14 chars with numbers letters and caps gets you ~80 bits of entropy, which is the NIST recommended value for passwords.
I store them in 1Password. (Whose password generator I don't like, but is still infinitely better than picking your own passwords in your head.)
- newman314 11y agoWhy not?
- LeoPanthera 11y agoI don't like that you have to specify a fixed number of numbers, special chars, etc.
- other_herbert 11y agoif it's truly random, then you need to if you want to guarantee you have at least 1 of various character classes..
- LeoPanthera 11y agoThe -M option does this in apg. (As opposed to -m, which doesn't.)
- bad_user 11y agoI think that's cool from a UI perspective, having that control, because for some services you still want typing to be doable. I mean, try typing this on your PC or mobile phone: &}n9$r}@pe^q;j2U33Aq8.kTa}Z2^ykQ And compare it with this one: dn#Ze39h644s9DdTpaxRaWW&m33Vy98b And yes, their client saves you somewhat, except that there are plenty of instances in which you resort to copy/pasting passwords. Like on Android where the integration is poor. And on the desktop as well. And guess what, copy/paste is really, really insecure, because apps can be made to listen to clipboard events, so you can have apps that are logging whatever you copy/paste. Oh, and Linux doesn't have 1Password, their old Windows client is getting replaced with a "modern Windows" app, so tough luck.