How to securely store and retrieve sensitive data in a .NET Standard 2.0 cross-platform (Windows+Linux) library
I have .NET Framework 4.7.2 library to store and retrieve sensitive data (like tokens) with help of CredentialManagement package on Windows. Now I need to make this library work both on Windows and Linux. I’ve retargeted it to .NET Standard 2.0 (to be able to consume it from both .NET Framework and .NET Core) and used KdSoft.CredentialManagement package (since CredentialManagement.Standard package was unlisted from nuget.org). I determine operating system with RuntimeInformation.IsOSPlatform like that:
How to securely store and retrieve sensitive data in a .NET Standard 2.0 cross-platform (Windows+Linux) library
I have .NET Framework 4.7.2 library to store and retrieve sensitive data (like tokens) with help of CredentialManagement package on Windows. Now I need to make this library work both on Windows and Linux. I’ve retargeted it to .NET Standard 2.0 (to be able to consume it from both .NET Framework and .NET Core) and used KdSoft.CredentialManagement package (since CredentialManagement.Standard package was unlisted from nuget.org). I determine operating system with RuntimeInformation.IsOSPlatform like that: