Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教问题:function getEncryption(xxxx) #26

Open
hitzhangjie opened this issue Mar 4, 2015 · 1 comment
Open

请教问题:function getEncryption(xxxx) #26

hitzhangjie opened this issue Mar 4, 2015 · 1 comment

Comments

@hitzhangjie
Copy link

       您好,请教个问题,希望你能指点一下。这几天我心血来潮,想钻研下web qq的实现,我想自己编程模
拟web qq的登录过程,做个qq机器人或者类似的程序。

       现在遇到个问题,mq_common.js里面定义的这个函数function getEncryption(xxxx),我在chrome中对
进行调试,了解了相关的算法,现在加密的流程大体上了解了,但是不知道为什么,当我输入用户名、密码、
验证码,点击登录,对其进行调试时,我在console里面“多次输入”上述函数getEncrption(xxxxx),发现每次
加密之后得到的md5Pwd都是不一样的!

       对此,比较困惑,查看了源代码,也没有发现其他随机变量会对加密算法产生影响啊,希望你能指点一
下。
@gaboolic
Copy link

QQ的这个加密用到了rsa 非对称加密
rsa有2个特点
1.每次产生的密文都不一样
2.长度是固定的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants