许多人的第一个密码都是“123456”,不是因为好记,而是在账号创建之初并没有一个合适的面可以使用,这导致许多人在后续并没有去更改这一密码,从而一直沿用下去。而该密码自2013年就已经是公认的“全球最弱密码”,并且连续蝉联至今“无人”能够超越,这代表它的安全性是非常低的,及其容易被不法分子破解。
var weakPwds = ["123456", "123456789", "111111", "5201314", "12345678", "123123", "password", "1314520", "123321", "7758521", "1234567", "5211314", "666666", "520520", "woaini", "520131", "11111111", "888888", "hotmail.com", "112233", "123654", "654321", "1234567890", "a123456", "88888888", "163.com", "000000", "yahoo.com.cn", "sohu.com", "yahoo.cn", "111222tianya", "163.COM", "tom.com", "139.com", "wangyut2", "pp.com", "yahoo.com", "147258369", "123123123", "147258", "987654321", "100200", "zxcvbnm", "123456a", "521521", "7758258", "111222", "110110", "1314521", "11111111", "12345678", "a321654", "111111", "123123", "5201314", "00000000", "q123456", "123123123", "aaaaaa", "a123456789", "qq123456", "11112222", "woaini1314", "a123123", "a111111", "123321", "a5201314", "z123456", "liuchang", "a000000", "1314520", "asd123", "88888888", "1234567890", "7758521", "1234567", "woaini520", "147258369", "123456789a", "woaini123", "q1q1q1q1", "a12345678", "qwe123", "123456q", "121212", "asdasd", "999999", "1111111", "123698745", "137900", "159357", "iloveyou", "222222", "31415926", "123456", "111111", "123456789", "123123", "9958123", "woaini521", "5201314", "18n28n24a5", "abc123", "password", "123qwe", "123456789", "12345678", "11111111", "dearbook", "00000000", "123123123", "1234567890", "88888888", "111111111", "147258369", "987654321", "aaaaaaaa", "1111111111", "66666666", "a123456789", "11223344", "1qaz2wsx", "xiazhili", "789456123", "password", "87654321", "qqqqqqqq", "000000000", "qwertyuiop", "qq123456", "iloveyou", "31415926", "12344321", "0000000000", "asdfghjkl", "1q2w3e4r", "123456abc", "0123456789", "123654789", "12121212", "qazwsxedc", "abcd1234", "12341234", "110110110", "asdasdasd", "123456", "22222222", "123321123", "abc123456", "a12345678", "123456123", "a1234567", "1234qwer", "qwertyui", "123456789a", "qq.com", "369369", "163.com", "ohwe1zvq", "xiekai1121", "19860210", "1984130", "81251310", "502058", "162534", "690929", "601445", "1814325", "as1230", "zz123456", "280213676", "198773", "4861111", "328658", "19890608", "198428", "880126", "6516415", "111213", "195561", "780525", "6586123", "caonima99", "168816", "123654987", "qq776491", "hahabaobao", "198541", "540707", "leqing123", "5403693", "123456", "123456789", "111111", "5201314", "123123", "12345678", "1314520", "123321", "7758521", "1234567", "5211314", "520520", "woaini", "520131", "666666", "RAND#a#8", "hotmail.com", "112233", "123654", "888888", "654321", "1234567890", "a123456"];
var pwdStrength = {
1: {
reg: /^.*([\W_])+.*$/i,
msg: icons.weak + "\u6709\u88ab\u76d7\u98ce\u9669,\u5efa\u8bae\u4f7f\u7528\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u7b26\u53f7\u4e24\u79cd\u53ca\u4ee5\u4e0a\u7ec4\u5408"
},
2: {
reg: /^.*([a-zA-Z])+.*$/i,
msg: icons.medium + "\u5b89\u5168\u5f3a\u5ea6\u9002\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e09\u79cd\u4ee5\u4e0a\u7684\u7ec4\u5408\u6765\u63d0\u9ad8\u5b89\u5168\u5f3a\u5ea6"
},
3: {
reg: /^.*([0-9])+.*$/i,
msg: icons.strong + "\u4f60\u7684\u5bc6\u7801\u5f88\u5b89\u5168"
}
};
function pwdStrengthRule(a, b) {
var c = 0;
var d = 0;
var e = !0;
var f = getStringLength(b);
if (6 > f)
return a.parent().removeClass("form-item-valid").removeClass("form-item-error"), void a.parent().next().find("span").removeClass("error").html($(a).attr("default"));
for (key in pwdStrength)
pwdStrength[key].reg.test(b) && d++;
return 1 == d ? c = f > 10 ? 2 : 1 : 2 == d ? (11 > f && f > 5 && (c = 2), f > 10 && (c = 3)) : 3 == d && f > 6 && (c = 3),
-1 !== $.inArray(b, weakPwds) && (e = !1, c = 1),
e && c > 0 ? a.parent().removeClass("form-item-error").addClass("form-item-valid") : a.parent().addClass("form-item-error").removeClass("form-item-valid"),
void 0 !== pwdStrength[c] && (pwdStrength[c] > 3 ? pwdStrength[c] = 3 : pwdStrength[c], a.parent().next().html("<span>" + pwdStrength[c].msg + "</span>")),
e
}
网友评论