How to Pass SecureSting value to ExecutableProcessPassword method

Advertisement

nikesh_digitek
Joined:
Posts:
4
Location:
Mumbai

How to Pass SecureSting value to ExecutableProcessPassword method

Hi,

I have write below code in my page.

session.ExecutableProcessUserName = "web";
session.ExecutableProcessPassword = "su8a"

but ExecutableProcessPassword method it can not accept string value because it's accept SecureSting value.

give me some sample code to pass securestring value in ExecutableProcessPassword method.

I will be thankful for you if you give asap reply.

Thanks
Nikesh

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: How to Pass SecureSting value to ExecutableProcessPassword method

SecureString securePassword = new SecureString();
securePassword.AppendChar('s');
securePassword.AppendChar('u');
securePassword.AppendChar('8');
securePassword.AppendChar('a');
session.ExecutableProcessPassword = securePassword;

Reply with quote

Advertisement

You can post new topics in this forum