Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to store encryption key

I am encrypting data (health care industry) using the aes encryption classes in the .net framework. What are some of the recommended locations for safely storing the key? I have it in the web.config for development, but that does not feel production worthy, to say the least.

like image 706
Saraz Avatar asked Oct 25 '10 14:10

Saraz


People also ask

Where should we store encryption key?

The encryption key is created and stored on the key management server. The key manager creates the encryption key through the use of a cryptographically secure random bit generator and stores the key, along with all it's attributes, into the key storage database.

Should an encryption key be stored?

Even keys stored only in server memory could be vulnerable to compromise. Where the value of the data demands it, keys should be encrypted whenever stored and only be made available in unencrypted form within a secure, tamper-protected environment and even (in extreme cases) kept offline.

Where are AES keys stored?

The AES master key always remains within the secure boundaries of the cryptographic coprocessors. Transport keys protect a key that is sent to another system, received from another system, or stored with data in a file.


Video Answer


1 Answers

You can encrypt your web.config values using built in methods in the framework:

http://weblogs.asp.net/scottgu/archive/2006/01/09/434893.aspx

This is probably a reasonable place to store your key - if somebody has managed to access your server to retrieve these details, then you probably have bigger worries.

like image 132
Paddy Avatar answered Oct 05 '22 23:10

Paddy