带密码的shell script
呵呵 用MD5加密密码是很常见的手法,呵呵,我又蜀犬吠日了
PWD="4589756f8870173d7d1daba1daaaf0a1"
read -p ""Please Input Password:" pwd
PWD1=`echo -n "$pwd"|md5sum|awk '{print $1}'`
[ "x$PWD1" != "x$PWD" ] && (echo "Password ERROR,Please Press Enter Exit";read ) &&exit 1