Hide password in line

I create a custom ftp client that registers on one ftp site and goes to a specific folder so that users do not put files in the wrong place.

I'm not really worried about this, but the password is just a line to start a new ftp object.

FtpClient ftp = new FtpClient("www.markonsolutions.com", "user", "password");

What is the best way to keep this password from prying eyes?

+3
source share
4 answers

FTP only supports text authentication - if you want to hide the password from intruders, you must use FTPS (FTP over SSL) .

UPDATE

, - . WireShark . , , .

UPDATE

, , . . Reflector, , . , .

obfuscator ( ) , ( , ;).

, - , , , , , . .

+10

this, .

+2

SO- , , .

, , .

+1

Specify password and URL configuration parameters in the protected file. I use INI files and they are placed in a directory protected by the web server, so the browser cannot open and not see the file / directory.

0
source

Source: https://habr.com/ru/post/1717291/


All Articles