Tag: C#
-
Storing secrets securly in Windows
One of the challenges with scripting / programming is securely storing passwords or API secrets across many different languages. Most of what i develop runs in Windows and as such it made sense to tap into the ProtectedData API and the Windows Registry. PowerShell Code Powershell Usage C# Code C# Usage Python Code Python Usage
-
Easily save and load C# classes using XML Serialization
These two functions below have saved me a lot of time, you simply create a class with variables inside it and then pass said class to the two functions below: