求助微信付款到银行卡,一直提示解密真实姓名或银行卡号出错
publickey = @"<RSAKeyValue><Modulus>" + publickey.Replace("-----BEGIN RSA PUBLIC KEY-----", "").Replace("-----END RSA PUBLIC KEY-----", "").Replace("\n", "") + "</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>";
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider();
rsa.FromXmlString(publickey);
byte[] cipherbytes = rsa.Encrypt(Encoding.Default.GetBytes(content), false);
return Convert.ToBase64String(cipherbytes);
公钥不管是PKCS#1还是PKCS#8都不行,实在是没辙了,求救求救求救!!!!
如能解决必重谢