0

在shell脚本中实现urlencode

Posted in Linux at 六月 8th, 2012 / No Comments »

urlencode说白了就是字符串替换,用php实现很easy,用脚本来就相对比较麻烦。先看一下这个脚本: source $1 id=$2 pass=$3 nonce=0 pa=`echo "$nonce$pass" | openssl rsautl -encrypt -inkey test.pub -pubin |...