Sample code to convert C# SecureString to String. Note that this is not the most secure to access SecureString.
Line 20 is one example of converting SecureString to String, this only works for .Net Framework 4.0 or later.
Lines 23 to 38 converts SecureString to String and works using .Net Framework 2.0 or up.
Reference(s):
https://stackoverflow.com/questions/818704/how-to-convert-securestring-to-system-string
</>
Subscribe to:
Post Comments (Atom)
SBCL Hello world
SBCL Hello, world! Version info: - OS: Windows 11 23H2 (Microsoft Windows [Version 10.0.22631.7079]) - Emacs: 30.2 - SBCL : 2.6.4 - SLI...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Install Winget on Windows 2022 or Windows 10 LTSC Install Pre-reqs Install Microsoft.UI.Xaml/2.8.6 Navigate to https://www.nuget.org/pa...
No comments:
Post a Comment