javascript - RSA加密过的表单密码用python怎么模拟,的用户名和密码

WBOY
Release: 2016-06-06 20:17:11
Original
1261 people have browsed it

javascript - RSA加密过的表单密码用python怎么模拟,的用户名和密码

回复内容:

javascript - RSA加密过的表单密码用python怎么模拟,的用户名和密码

用的jsencrypt加密,
看登录按钮ID为signin有个click事件调用signin_go()方法,

<code>var encrypt = new JSEncrypt();
            encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCp0wHYbg/NOPO3nzMD3dndwS0MccuMeXCHgVlGOoYyFwLdS24Im2e7YyhB0wrUsyYf0/nhzCzBK8ZC9eCWqd0aHbdgOQT6CuFQBMjbyGYvlVYU2ZP7kG9Ft6YV6oc9ambuO7nPZh+bvXH0zDKfi02prknrScAKC0XhadTHT3Al0QIDAQAB');
            var encrypted_input1 = encrypt.encrypt($('#input1').val());
            var encrypted_input2 = encrypt.encrypt($('#input2').val());
            var ajax_data = {
                input1: encrypted_input1,
                input2: encrypted_input2,
                remember: $('#remember_me').prop('checked')
            };
</code>
Copy after login

jsencrypt的github:https://github.com/travist/jsencrypt
写了个demo:https://jsfiddle.net/0ad8nb33/

如果不想费事的话,有一个简单的方法就是,直接用python执行js代码; 有个库: PyV8很好用。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!