RSA:
获取RSA实例:
1 RSACryptoServiceProvider rsaProvider = new RSACryptoServiceProvider(1024);
获取公钥:
1 string publicKey = rsaProvider.ToXmlString(false);
获取私钥:
1 string privateKey = rsaProvider.ToXmlString(true);
RSA:
获取RSA实例:
1 RSACryptoServiceProvider rsaProvider = new RSACryptoServiceProvider(1024);
获取公钥:
1 string publicKey = rsaProvider.ToXmlString(false);
获取私钥:
1 string privateKey = rsaProvider.ToXmlString(true);