Hi Everyone,
I have a requirement to pass a secure string and I would like to convert a string to achieve that.
Any functions available to achieve
Hi Everyone,
I have a requirement to pass a secure string and I would like to convert a string to achieve that.
Any functions available to achieve
Hi @Vincent2
If you need convert ‘String’ to ‘System.Security.SecureString’
You can use assign:
YourString = new System.Net.NetworkCredential(string.Empty, YourSecurityString).Password
Hope this helps
Hi @Vincent2
Try this:
(New System.Net.NetworkCredential("","give the password
here")).SecurePassword
Output DataType System.Security.SecureString
Hope it helps!!
Hi @Vincent2 ,
You can use
new System.Net.NetworkCredential(string.Empty, yourPassword).Password
eg:
regards.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.