0

当我在我的代码中与 .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!");
}

如果有人可以帮助我,我将不胜感激!!!

4

0 回答 0