How to send argument securely using Process class?
Posted
by Sebastian
on Stack Overflow
See other posts from Stack Overflow
or by Sebastian
Published on 2010-04-27T16:56:20Z
Indexed on
2010/04/27
17:03 UTC
Read the original article
Hit count: 297
Hello,
I'm using System.Diagnostics.Process to execute an svn command from a windows console application. This is the configuration of the process:
svn.StartInfo.FileName = svnPath;
svn.StartInfo.Arguments = string.Format("copy {0}/trunk/ {0}/tags/{1} -r head -q --username {3} --password {4} -m \"{2}\"", basePathToRepo, tagName, message, svnUserName, svnPassword);
svn.StartInfo.UseShellExecute = false;
svn.Start();
svn.WaitForExit();
My problem is that those arguments, which include the svn credentials, are sent (I suppose) in an unsecure way.
Is there a way to send these arguments in a secure way using the Process class?
Thanks!
© Stack Overflow or respective owner