Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Website security - can application hide website password from hackers?

Status
Not open for further replies.

MatthewBragg

Programmer
Jul 8, 2008
6
GB
My Delphi 6 application retrieves its own updates from my website. The IdFTP component that I am using for the FTP download needs to know my website's password in order to be able to open the site before downloading the file.

Anyone can use a debugger to find out what my site password is. They just have to step through the program execution until the program defines the password field in the IdFTP structure.

There must be a more secure way to download files programmatically without the user having to use a web browser. Does anyone know what it might be?
 
define the username and password on your FTP site to only allow access to a folder containing your program updates.

That way it doesn't matter if the username and password is found out.
 
You could always store the update in a public folder, unless your update is used for a program you need to purchase first.
You could always download the file from your program and use Shellexecute to run the update.
 
I'm not up to speed with this by any means, but I'm sure there are secured ways of making FTP connections whereby encryption is utilised. Try researching:
- SFTP
- FTPS
- SSL
- SSH

Clive
Runner_1Revised.gif

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"To err is human, but to really foul things up you need a computer." (Paul Ehrlich)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To get the best answers from this forum see: faq102-5096
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top