Creating Session Object with Encrypted password
I would like to know if it is possible to create the Sesson object and use the encrypted password for the password to avoid having a clear text password in my source code.
SessionOptions sessionOptions = new SessionOptions
{Protocol = WinSCP.Protocol.Sftp,
HostName = "server",
UserName = "user",
Password = "[i]encryptedpassword@",[/i]
PortNumber = 22,
SshHostKeyFingerprint = "ssh-rsa xxxx xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
};
SessionOptions sessionOptions = new SessionOptions
{Protocol = WinSCP.Protocol.Sftp,
HostName = "server",
UserName = "user",
Password = "[i]encryptedpassword@",[/i]
PortNumber = 22,
SshHostKeyFingerprint = "ssh-rsa xxxx xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
};