Author: Adam <git@apiote.xyz>
turn off echo when asking for password to hash
password.sh | 4 +++-
diff --git a/password.sh b/password.sh index af10a8028793a1f51594854e1f70fd8e459dc282..73be0ccd992591579320eb9c5fdd347e16977c27 100755 --- a/password.sh +++ b/password.sh @@ -19,5 +19,7 @@ } if [ "$(basename "$0")" = 'password.sh' ] then - cat - | encode "$1" + stty -echo + cat - | encode "$1" > password + stty echo fi