|
50精币
对于大神不难,帮我写出password的加密源码
网址:https://sso1.nlc.cn/sso/login/welcome
我看源码应该是这段
var password = CryptoJS.enc.Utf8.parse(password);
var pubkeyHex =
"0487997a974768450f7e0d75db6a897b4460ecd1d3ca935dd9ce14465b55ed617218eb911beb86c8cb6a78e753b1168f4b4800803585a6f5924b7063ea8ba22c8f";
if (pubkeyHex.length > 130) {
pubkeyHex = pubkeyHex.substr(pubkeyHex.length - 130);
}
var cipher = new SM2Cipher("1");
var userKey = cipher.CreatePoint(pubkeyHex);
password = cipher.str2Bytes(password.toString());
pwd = cipher.Encrypt(userKey, password);
pwd是生成的加密
不知道我分析的对不对
求大神给我写出这个post登录的源码,不胜感激!
|
|