How to convert String to secure string?

hello everyone,
I have a string that i need to convert into a secure string.
How do I do it?

thanks

Create a variable os secure string type and assign the below value. strYourStringPassword is your password in string

(new System.Net.NetworkCredential("", “strYourStringPassword”)).SecurePassword

it worked
thank you

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.