码迷,mamicode.com
首页 > Web开发 > 详细

极验验证码-userresponse.js

时间:2017-02-10 14:30:25      阅读:350      评论:0      收藏:0      [点我收藏+]

标签:and   char   rand   arc   round   mat   splice   length   turn   

aa= function(a, b) {
for (var c = b.slice(32), d = [], e = 0; e < c.length; e++) {
var f = c.charCodeAt(e);
d[e] = f > 57 ? f - 87 : f - 48
}
c = 36 * d[0] + d[1];
var g = Math.round(a) + c;
b = b.slice(0, 32);
var h, i = [[], [], [], [], []], j = {}, k = 0;
e = 0;
for (var l = b.length; l > e; e++)
h = b.charAt(e),
j[h] || (j[h] = 1,
i[k].push(h),
k++,
k = 5 == k ? 0 : k);
for (var m, n = g, o = 4, p = "", q = [1, 2, 5, 10, 50]; n > 0; )
n - q[o] >= 0 ? (m = parseInt(Math.random() * i[o].length, 10),
p += i[o][m],
n -= q[o]) : (i.splice(o, 1),
q.splice(o, 1),
o -= 1);
return p
}

极验验证码-userresponse.js

标签:and   char   rand   arc   round   mat   splice   length   turn   

原文地址:http://www.cnblogs.com/tester-huang/p/6386029.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!