summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2021-04-04 10:42:51 -0700
committerMike Crute <mike@crute.us>2021-04-04 10:43:41 -0700
commit01228c32afb63c884060869ba4487f67e782cc6b (patch)
tree600fdfee5ccc06dc04390100fbf8718726985484 /bin
parent012caaa6e13d658bfd34ceaaef889369af197390 (diff)
downloaddotfiles-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-xbin/secure-passwd.sh2
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:]"
4recipe="[:alnum:]" 4recipe="[:alnum:]"
5read -r -n 26 pass < <(LC_ALL=C tr -dc "$recipe" < /dev/urandom) 5read -r -n 20 pass < <(LC_ALL=C tr -dc "$recipe" < /dev/urandom)
6if [ "$1" = "-n" ]; then 6if [ "$1" = "-n" ]; then
7 echo -n $pass 7 echo -n $pass
8else 8else