6
Q:

c# how to get a securestring from string

SecureString theSecureString = new NetworkCredential("", "myPass").SecurePassword;
0
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');
0

New to Communities?

Join the community