QQ Password Encryption Operation Auxiliary class Qqencryptutil

Source: Internet
Author: User

Achieve Results1) This auxiliary class is mainly used to facilitate the implementation of QQ password encryption operation.
2) In many of the QQ simulation Web Capture data, need to enter the user account number, password, where the password is required to encrypt operations, the general use of JS script implementation, here to translate it into C # code operation, in fact, the password and verification code through 3 times MD5 encryption implementation. <summary>
QQ encrypts data according to password and verification code
</summary>
<param name= "password" > original password </param>
<param name= "Verifycode" > Verification Code </param>
<returns></returns> public static string Encodepasswordwithverifycode (string password, string verify Code)

private bool Checklogin ()

{

Httphelper httphelper = new Httphelper ();

String Refurl = "http://ui.ptlogin2.qq.com/cgi-bin/login?appid=3000801&s_url=http%3A%2F%2Fqun.qq.com%2Fgod% 2fsucc.htm&f_url=loginerroralert&lang=2052&bgcolor=ffffff&style=1&low_login=1&link_ Target=blank&target=self&hide_title_bar=1&dummy=1 ";

string verifycode = This.txtVerify.Text;

String postdata = String. Format ("u={0}&p={1}&verifycode={2}&aid=3000801&u1=http%3a%2f%2fqun.qq.com%2fgod%2fsucc.htm &h=1&ptredirect=0&ptlang=2052&from_ui=1&dumy=&fp=loginerroralert ",

This.txtUsername.Text, Qqencryptutil.encodepasswordwithverifycode (This.txtPassword.Text, Verifycode), Verifycode) ;

string result = Httphelper.gethtml ("Http://ptlogin2.qq.com/login" + postdata, Portal.gc.cookieQun, Refurl);

string errortxt = result;

BOOL IsLogin = result. Contains ("Login Successful! ");

return islogin;
}

、、、、、

QQ Password Encryption Operation Auxiliary class Qqencryptutil

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.