I am using Visual C# built in feature Settings to save some of my program’s options.
I also want to store one password, but then it comes public… is it possible to encrypt the password before saving it using this settings method and then decrypt it back?
I am using Visual C# built in feature Settings to save some of my
Share
For simple encryption needs, I’ve used the DPAPI via the ProtectedData class. To make the resulting encrypted value storable in a text file or registry, I encode the resulting byte array.
Here is the class I wrote to wrap this up: