diff --git a/home/user/.local/bin/genpass b/home/user/.local/bin/genpass index 4398f2c..1f7fae9 100755 --- a/home/user/.local/bin/genpass +++ b/home/user/.local/bin/genpass @@ -2,4 +2,6 @@ set -ue -openssl rand -base64 12 \ No newline at end of file +len="${1:-20}" + +LC_ALL=C tr -dc 'A-Za-z0-9@#%^&*()_+=-{}[]:;<>,.?/' < /dev/urandom | head -c "${len}"| xargs echo