|
发表于 2014-2-7 21:55:27
|
显示全部楼层
string pw = "," + passWord + "," + LoginInfo.CaptchaCode;
string[] Em_str = new string[10];
Em_str[0] = "xyi0grm9as78vhzu6k234lef1pqcw5ojtdnb";
Em_str[1] = "vxyi0gr6kq4lef1pobm9a23s78hzcw5djtnu";
Em_str[2] = "q4l78k23f1potnhzcudjyi0gr6bvxm9aw5se";
Em_str[3] = "f1q4ldjpotnhi0grawbvxm9e5s3u78k2zc6y";
Em_str[4] = "nh3zu78kc6ytf1aq4ldjpowbvxm9i0gre5s2";
Em_str[5] = "um92re5snh3z678kcqytf1gvxaowb4ldjpi0";
Em_str[6] = "re5swbao8kum91gvxc2nh3z67fdjpi0qyt4l";
Em_str[7] = "ao8re5kusyt4nh3zwbxc2m910qgv67fdjpil";
Em_str[8] = "5axc2m67f0qgvildjpkusywbnh3z91o8ret4";
Em_str[9] = "7ldjpk8ruvixf05aqg3z9cnet41hwbo2m6sy";
string Ey_str = "0123456789abcdefghijklmnopqrstuvwxyz";
string[] _local4 = pw.Split(',');
string[] _local5 = ",".Split(',');
string _local7 = _local4[2].Substring(0, 1);
int _local6 = int.Parse(_local4[2].Substring(3, 1));
if (_local4[0] == "manager")
{
_local5[0] = "#@$%#$#";
}
else
{
_local5[0] = _local4[0];
}
int _local1 = 0;
while (_local1 < _local4[1].Length)
{
var _local2 = _local4[1].Substring(_local1, 1); //a
var _local3 = Ey_str.IndexOf(_local2); //10
if (_local3 == -1)
{
_local5[1] = _local5[1] + _local2; //a
}
else
{
_local5[1] = _local5[1] + Em_str[_local6].Substring(_local3, 1);
}
_local1++;
}
string[] tmp = ((((_local5[0] + ",") + _local5[1]) + ",") + _local4[2]).Split(',');
return tmp[1];
感谢楼主提供的代码。 |
|