/// <summary> /// 获取RSA加密后的密码密文 /// </summary> /// <param name="password"></param> /// <returns></returns> private string get_pwa_rsa(string password) { WeiboRSA rsa = new WeiboRSA(); rsa.SetPublic(weibo_rsa_n, "10001"); string data = servertime + "\t" + nonce + "\n" + password; return(rsa.Encrypt(data).ToLower()); }
/// <summary> /// 获取RSA加密后的密码密文 /// </summary> /// <param name="password"></param> /// <returns></returns> private string get_pwa_rsa(string password) { WeiboRSA rsa = new WeiboRSA (); rsa.SetPublic (weibo_rsa_n, "10001"); string data = servertime + "\t" + nonce + "\n" + password; return rsa.Encrypt (data).ToLower (); }