#只要输入登陆的网站地址就能得出一个复杂的密码

#懒人配备


echo "Please input you wanto login website:"
read website
echo
echo
password=`echo "$website" |sed 'y/aqsol./@9501>/'`
length=${#password}


for i in `seq 0 $length`
   do

  a=${password:i:1}
   b=`echo {a..z} | grep -o "$a" `

    if [ -z $b ];then
       echo -n "$a"
       else
         c=`echo "$b" | tr [a-z] [A-Z]`
          echo -n $c
          t=$(( $length - $i  ))
          f=$(( $i + 1))
          d=${password:f:t}
          echo -n $d
          break
     fi

done

echo ""