I need to declare a secure string a variable that is located in a text file. In Powershell this is easy:
$password = Get-content "C:\text_file_with_secure_string_in_it.txt" | convertto-securestring
How would I declare this variable correctly in C#?
I found a simple test template on the web to get started learning C# / .NET but I have run in to a few errors when I try to execute the program.
"An unhandled exception of type 'System.UriFormatException' occurred in System.dll
Additional information: Invalid URI: The format of the URI could...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.