c# securestring code example
Example 1: c# how to get a securestring from string
SecureString theSecureString = new NetworkCredential("", "myPass").SecurePassword;
Example 2: c# how to get a securestring from string
var s = new SecureString();
s.AppendChar('d');
s.AppendChar('u');
s.AppendChar('m');
s.AppendChar('b');
s.AppendChar('p');
s.AppendChar('a');
s.AppendChar('s');
s.AppendChar('s');
s.AppendChar('w');
s.AppendChar('d');