Zsh Random Password Generator

Time for another zsh one-liner… if you want to generate a 20-character random alphanumeric password this will do it:

LC_CTYPE=C LC_ALL=C tr -dc "a-zA-Z0-9-_\$\?" < /dev/urandom | head -c 20; echo

…no LastPass required!

 Share!

 
comments powered by Disqus