I have this file I use to set my username and password before exporting the value.
#!/bin/bash echo -n "User:"; read user echo -n "Password:"; read -s password export http_proxy=http://$user:$password@$domain:$portnum if curl -silent http://www.google.com | grep authentication_failed; then echo NO CONNECT unset http_proxy else echo OK fi
export -p I'm able to see the value that I have set
furthermore, I'd like an encrypted form of my password inside $password, versus that value containing my password verbatim.
I'm familiar with using openssh to salt passwords, or printing hash using perl's crypt(), but for my purpose, I cannot see it's usage? any tips will be appreciated?