summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2019-03-28 21:22:12 -0700
committerMike Crute <mike@crute.us>2019-03-28 21:25:02 -0700
commit97f28e513a7d4f0ade6a57acbede1125169614dc (patch)
tree4b8a0b6232b86e6e09ad3ac27969d4cf4895133a /bin
parentd2c89014fcb19165b227d4e452a8a61cb681f58c (diff)
downloaddotfiles-97f28e513a7d4f0ade6a57acbede1125169614dc.tar.bz2
dotfiles-97f28e513a7d4f0ade6a57acbede1125169614dc.tar.xz
dotfiles-97f28e513a7d4f0ade6a57acbede1125169614dc.zip
More portable password algorithm
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 ec2bc6e..25a4ef1 100755
--- a/bin/secure-passwd.sh
+++ b/bin/secure-passwd.sh
@@ -1,6 +1,6 @@
1#!/bin/bash 1#!/bin/bash
2 2
3pass=$(head -c 500 /dev/urandom | tr -dc '[:alnum:]' | head -c 26) 3pass=$(dd if=/dev/urandom count=1 bs=32 2>&1 | base64 | tr -dc '[:alnum:]' | cut -b -26)
4if [ "$1" = "-n" ]; then 4if [ "$1" = "-n" ]; then
5 echo -n $pass 5 echo -n $pass
6else 6else