Link to home
Start Free TrialLog in
Avatar of stevep01
stevep01

asked on

how to assign a password as system.security.secureString VB.NET 2.0

I want to open a file using a password with process start.  The password is "pass+word".  How can I convert the password to type system.security.secure string?


Dim sFile = "\\server\servdir\somefile.pdf"
Dim sUser As String = "user"
Dim sPass As String = "pass+word"
Dim SDomain As String = "XYZ"
 
'newPass = New System.Security.SecureString() ???????
 
Process.Start(sFile, sUser, newPass, SDomain)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Joel Coehoorn
Joel Coehoorn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial