Home >Backend Development >PHP Tutorial >javascript - 想问一下的用户登陆时用户名和密码的加密算法是什么?

javascript - 想问一下的用户登陆时用户名和密码的加密算法是什么?

WBOY
WBOYOriginal
2016-06-06 20:17:171329browse

javascript - 想问一下的用户登陆时用户名和密码的加密算法是什么?

回复内容:

javascript - 想问一下的用户登陆时用户名和密码的加密算法是什么?

看着像RSA

补充:使用的是https://github.com/travist/jsencrypt
确实是RSA

F12 可以看到~~~
jsencrypt 是 rsa 加密

<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>
Statement:
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