Symmetric key storage

2019-03-09 19:35发布

My company is going to be storing sensitive data for our customers, and will be encrypting data using one of the managed .NET encryption algorithm classes. Most of the work is done, but we haven't figured out how/where to store the key. I've done some light searching and reading, and it seems like a hardware solution might be the most secure. Does anyone have any recommendations on a key storage solution or method?


Thanks for your replies, everyone.

spoulson, the issue is actually both the "scopes" that you mentioned. I suppose I should have been clearer.

The data itself, as well as the logic that encrypts it and decrypts it is abstracted away into an ASP.NET profile provider. This profile provider allows both encrypted profile properties as well as plain text ones. The encrypted property values are stored in exactly the same way the plain text ones are - with the obvious exception that they've been encrypted.

That said, the key will need to be able to be summoned for one of three reasons:

  1. The authorized web application, running on an authorized server, needs to encrypt data.
  2. Same as #1, but for decrypting the data.
  3. Authorized members of our business team need to view the encrypted data.

The way I'm imagining it is that nobody would ever actually know the key - there would be a piece of software controlling the actual encrypting and decrypting of data. That said, the key still needs to come from somewhere.

Full disclosure - if you couldn't already tell, I've never done anything like this before, so if I'm completely off base in my perception of how this should work, by all means, let me know.

9条回答
家丑人穷心不美
2楼-- · 2019-03-09 19:57

Depending on your application you could use the Diffie-Hellman method for two parties to securely agree on a symmetric key.

After an initial, secure exchange, the key is agreed upon and the rest of the session (or a new session) can use this new symmetric key.

查看更多
Lonely孤独者°
3楼-- · 2019-03-09 20:04

Use a hard-coded key to encrypt the generated key before writing it out. Then you can write it anywhere.

Yes you can find the hard-coded key, but so long as you're assuming it's OK to store a symmetric key anywhere, it's not less secure.

查看更多
贪生不怕死
4楼-- · 2019-03-09 20:05

I think I misunderstood your question. What you're asking for is not in scope of how the application handles its key storage, but rather how your company will store it.

In that case, you have two obvious choices:

  • Physical: Write to USB drive, burn to CD, etc. Store in physically secure location. But you run into the recursive problem: where do you store the key to the vault? Typically, you delegate 2 or more people (or a team) to hold the keys.

  • Software: Cyber-Ark Private Ark is what my company uses to store its secret digital information. We store all our admin passwords, license keys, private keys, etc. It works by running a Windows "vault" server that is not joined to a domain, firewalls all ports except its own, and stores all its data encrypted on disk. Users access through a web interface that first authenticates the user, then securely communicates with the vault server via explorer-like interface. All changes and versions are logged. But, this also has the same recursive problem... a master admin access CD. This is stored in our physical vault with limited access.

查看更多
登录 后发表回答