diff options
author | Mike Crute <mike@crute.us> | 2021-04-04 10:42:51 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2021-04-04 10:43:41 -0700 |
commit | 01228c32afb63c884060869ba4487f67e782cc6b (patch) | |
tree | 600fdfee5ccc06dc04390100fbf8718726985484 /bin | |
parent | 012caaa6e13d658bfd34ceaaef889369af197390 (diff) | |
download | dotfiles-01228c32afb63c884060869ba4487f67e782cc6b.tar.bz2 dotfiles-01228c32afb63c884060869ba4487f67e782cc6b.tar.xz dotfiles-01228c32afb63c884060869ba4487f67e782cc6b.zip |
Secure passwords are only 20 chars
A number of sites seem to have character limits that top out at 20
characters so just make that the default.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/secure-passwd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/secure-passwd.sh b/bin/secure-passwd.sh index 82362f4..1cbdfba 100755 --- a/bin/secure-passwd.sh +++ b/bin/secure-passwd.sh | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | #recipe="[:graph:]" | 3 | #recipe="[:graph:]" |
4 | recipe="[:alnum:]" | 4 | recipe="[:alnum:]" |
5 | read -r -n 26 pass < <(LC_ALL=C tr -dc "$recipe" < /dev/urandom) | 5 | read -r -n 20 pass < <(LC_ALL=C tr -dc "$recipe" < /dev/urandom) |
6 | if [ "$1" = "-n" ]; then | 6 | if [ "$1" = "-n" ]; then |
7 | echo -n $pass | 7 | echo -n $pass |
8 | else | 8 | else |