Secure Key Storage

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I have to encrypt and decrypt some data for which I have to use a symmetric
algorithm. I want to store the key securely.
I know this can be done in hardware as well as software. But I am only
considering
the software implementation.
Can anyone guide me as to how can I store the key securely as well as retrieve
it easily in code. I am using .Net 1.1

Thanks in advance
Vikas Manghani
 
Vikas Manghani said:
Hi
I have to encrypt and decrypt some data for which I have to use a
symmetric
algorithm. I want to store the key securely.
I know this can be done in hardware as well as software. But I am only
considering
the software implementation.
Can anyone guide me as to how can I store the key securely as well as
retrieve
it easily in code. I am using .Net 1.1

Under .NET 2.0 you can use System.Security.Cryptography.ProtectData. Under
1.x, you'll have to implement similar functionality yourself by directly
interacting with DPAPI.

Here's a place to start:

http://www.pinvoke.net/default.aspx/crypt32/CryptProtectData.html

-cd
 
Back
Top