我正在阅读.NET 中的密钥容器作为存储用于非对称加密和数字签名的私钥的安全场所。
我的问题是密钥容器有多安全?因为我发现如果我知道密钥容器名称,那么我将能够使用以下方法检索私钥:
// Create the CspParameters object and set the key container
// name used to store the RSA key pair.
CspParameters cp = new CspParameters();
cp.KeyContainerName = ContainerName;
// Create a new instance of RSACryptoServiceProvider that accesses
// the key container MyKeyContainerName.
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(cp);
// Display the key information to the console.
Console.WriteLine("Key retrieved from container : \n {0}", rsa.ToXmlString(true));
密钥容器是存储私钥的安全场所吗?