I need to do is to encrypt/decryption some sting. Is it possible to use IDataProtectionProvider
in my ASP.NET MVC (not core) project?
I can see the interface is defined in the following packages:
- Microsoft.Owin.Security.DataProtection
- Microsoft.AspNetCore.DataProtection
I am not sure which one of the above packages I should use? Also, not sure how to actually instantiate DataProtector?