
27 Sep
2018
27 Sep
'18
6:29 a.m.
On 26/09/18 10:43, Giles Orr via talk wrote:
I wrote a random password generator shell script, the core of which is this one-liner:
dd if=/dev/urandom bs=1 count=256 2>/dev/null | tr -dc 'A-Za-z0-9!@$%^&*(){}[]=+-_/?\|~`' | head -c 32
If semi-random 32 (or n) character passwords is what you're after, pwgen should work on Linux and macOS: pwgen -s -y 32 1 f.,,H%+IMpQ-yDG+W'5'+AmjU$CcF*ZK That said, if that's a password for a human, I pity the person who has to type it. What are you using passwords like that for, as opposed to some kind of key based auth? Cheers, Jamon