Topic "Creating Session Object with Encrypted password"

Author Message
[View user's profile]

Joined: 2012-09-25
Posts: 1
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"
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
There's no way so safely encrypt password in a way that still allow automation.

All we can do to introduce some obfuscation. But you can do that on your own.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License