diff options
Diffstat (limited to 'bin/pwg')
-rwxr-xr-x | bin/pwg | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/pwg b/bin/pwg new file mode 100755 index 00000000..219de003 --- /dev/null +++ b/bin/pwg @@ -0,0 +1,7 @@ +#!/bin/sh +# Shortcut to generate just one strong password with pwgen(1) +# If any arguments are provided, those are used instead +if [ "$#" -eq 0 ] ; then + set -- --secure -- "${PWGEN_LENGTH:-15}" "${PWGEN_COUNT:-1}" +fi +pwgen "$@" |