X-Git-Url: http://www.club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=enc.sh;h=de4c2a86d440fa3cb8957df583732fd850ace3ec;hb=954fc12886a308332809cef0a5cd162de66fc178;hp=e6c51ebef1390edb05f5bf6cc569d782bad10379;hpb=f5049e9ec9a5fe1a98663174bc659b56a6871e95;p=cmccabe-bin diff --git a/enc.sh b/enc.sh index e6c51eb..de4c2a8 100755 --- a/enc.sh +++ b/enc.sh @@ -5,10 +5,13 @@ die() { exit 1 } +if [[ "x${PASS}" = "x" ]]; then + read -s -p "enter password: " PASS +fi + #[ "x${SALT}" = "x" ] && die "you must set SALT to the salt." #SALT=$(dd count=1024 if=/dev/random 2>/dev/null |md5sum|sed 's/-//') #[ $? -ne 0 ] && die "failed to generate SALT" -[ "x${PASS}" = "x" ] && die "you must set PASS to the password" RET=0 for FILE in "$@"; do