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
---
Talk Mailing List
[email protected]
https://gtalug.org/mailman/listinfo/talk

Reply via email to