1
int dwKeySize = 1024;
rsaCryptoServiceProvider = new RSACryptoServiceProvider(dwKeySize);
rsaCryptoServiceProvider.FromXmlString(strxmlString);
byte[] bytes = Encoding.UTF8.GetBytes(strInPut);
byte[] encryptedBytes = rsaCryptoServiceProvider.Encrypt(bytes, false);
return Convert.ToBase64String(encryptedBytes);
紅寶石equivalant我c#
產生public RSA key
並希望相當於紅寶石上述算法加密數據。什麼是這個C#的RSACryptoServiceProvider方法
我在FromXmlString任何幫助將是巨大的特別感興趣 –