从KeePass获取密码

时间:2019-07-09 12:37:21

标签: c# .net passwords keepass

当我在代码中使用.net建立连接时,我想隐藏服务器密码。密码在KeePass中,但我不知道如何获取。

这是我与服务器的连接代码:

ftpConnection = new FTPConnection();
ftpConnection.ServerAddress = "0000"; // here i want to hide it 
ftpConnection.UserName = "****";
ftpConnection.Password = "*****";
ftpConnection.TransferType = FTPTransferType.BINARY;   

try
{
     ftpConnection.Connect();
     ftpConnection.GetWorkingDirectory();
} 
catch (Exception ex)
{   
     fileDetails = ftpConnection.GetFileInfos();
     //string[] nomsFichier = ftpConnection.GetFiles();
     MessageBox.Show("Vous etes connecté au serveur!");
}

如果有人可以帮助我,我将非常感激!!!

0 个答案:

没有答案