Re: How to convert string to SecureString?
- From: "Bishoy George" <bishoy@xxxxxxxxxx>
- Date: Thu, 24 Aug 2006 01:30:10 +0300
"Bishoy George" <bishoy@xxxxxxxxxx> wrote in message
news:umHfhovxGHA.4972@xxxxxxxxxxxxxxxxxxxxxxx
I want to pass a string password in System.Diagnostics.Process.Start.-------------------------------------
The problem is that the defined password parameter is SecureString
not string while my password is string.
Normal casting evaluates to errors.
Please how to cast string to SecureString?
Many Thanks in Advance.
Bishoy
I found a simple way:
char[] passwordChars = passwordPre.ToCharArray();
SecureString password = new SecureString();
foreach (char c in passwordChars)
{
password.AppendChar(c);
}
.
- References:
- How to convert string to SecureString?
- From: Bishoy George
- How to convert string to SecureString?
- Prev by Date: Re: Are AuthTickets Secure?
- Next by Date: Re: How to run as in a deamon
- Previous by thread: How to convert string to SecureString?
- Next by thread: Re: Are AuthTickets Secure?
- Index(es):
Relevant Pages
|