emrekizildas / EntityFrameworkCore.EncryptColumn

Encrypt & Decrypt your databases columns using EntityFramework Core.
MIT License
87 stars 40 forks source link

Feature Request: Consider Using DataProtection APIs for encryption key management #5

Closed wrobbins closed 2 years ago

wrobbins commented 2 years ago

Microsoft has built in support for encryption key secret storage using the DataProtection APIs.

Using these interfaces you could generate and store the encryption key(s) used in GenerateEncryptionProvider.cs in a configurable, secure way.

emrekizildas commented 2 years ago

Hi @wrobbins , I have tried this before, but since DataProtection library constantly generates a new key based on the data, it is very difficult to decipher the encrypted data with which key it was encrypted with.