Unix Password Generator Script. Bash

>mkpw
chmod +x mkpw
mkpw:
#!/usr/bin/bash

function mkpw() { head /dev/urandom | uuencode -m – | sed -n 2p | cut -c1-${1:-8}; }

mkpw;

./mkpw

Leave a comment

You must be logged in to post a comment.