المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Cryptographic Service Provider: How Do I Secure Machine-Level RSA Key Containers?



C# Programming
01-06-2010, 09:00 PM
I am wondering how to create a key container on a machine that only my application can access. I have successfully created and used the container, but I think that other users and applications on the machine have access to the private key. Is there any way to protect this information? The code used to generate and utilize the CspParameters object is below:
CspParameters csp = new CspParameters();
csp.Flags = CspProviderFlags.UseMachineKeyStore |
CspProviderFlags.UseNonExportableKey;
csp.KeyContainerName = "Example Container Name";
RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(1024, csp);
Thanks,

Sounds like somebody's got a case of the Mondays

-Jeff