Generate Passwords

Today I needed to generate 22 unique passwords, and this was the fastest way:

brew install pwgen

cat ~/.bash_profile
function genpasswd()
{
    pwgen -Bs $1 1 | tr -d '\n' | pbcopy;
}

genpasswd 16
4UmudvihvXYkw9zh