Пример #1
0
        /// <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());
        }
Пример #2
0
 /// <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 ();
 }