You can also use gpg to encrypt the password and then pass it as a variable to curl:
to encrypt: gpg -c $FILE this creates $FILE.gpg - encrypted password.
PWFILE=~/<file> gpg --batch $PWFILE.gpg PASSWORD=cat $PWFILE rm -f $PWFILE
cat $PWFILE
curl -sL -k -u user:${PASSWORD} http://.........
You can also use gpg to encrypt the password and then pass it as a variable to curl:
to encrypt:
gpg -c $FILE
this creates $FILE.gpg - encrypted password.
get password
PWFILE=~/<file>
gpg --batch $PWFILE.gpg
PASSWORD=
cat $PWFILE
rm -f $PWFILE
curl -sL -k -u user:${PASSWORD} http://.........