diff --git a/README.md b/README.md index 0fb1cbe..e1f4b39 100644 --- a/README.md +++ b/README.md @@ -135,11 +135,11 @@ Checks which Arch Linux package owns a command passgen --- -Returns a random password +Returns a random password or passphrase Usage: - passgen [LENGTH] + passgen [-w|--word] [LENGTH] ping-test --- diff --git a/passgen b/passgen index 61de8fa..6e86ea5 100755 --- a/passgen +++ b/passgen @@ -1,9 +1,44 @@ #!/bin/sh -if [ $1 ]; then - randompassLength=$1 -else - randompassLength=8 -fi - -tr -dc A-Za-z0-9