2 ms·
If you change `openssl rand 150` to a bigger number, say 1000 or so, you can generate longer passwords.
by gav 5y ago
If you change `openssl rand 150` to a bigger number, say 1000 or so, you can generate longer passwords.
- nickjj 5y agoAh, I see. Did you test your solution on macOS btw? I know macOS uses an ancient version of Bash and has different binaries that act differently vs Linux (such as sed). I don't have a Mac here but I do try to make my dotfiles compatible with it. If your solution works on macOS it would be nice to drop the pwgen dependency.
- gav 5y agoI use it on macOS and it works fine. There is a brew recipe for pwgen, but that's one more dependency to worry about.