You are here: Re: How to hide username / password when using FTP functions « PHP Programming Language « IT news, forums, messages
Re: How to hide username / password when using FTP functions

Posted by Jerry Stuckle on 10/03/06 19:57

livefreeordie wrote:
> Hi,
>
> I'm part of a 5-person team that develops websites for our company. I
> need to use the ftp_* functions to find some files on another file
> server. I need to authenticate to the file server using my username &
> password but I don't want to have it right there in the script in plain
> text.
>
> Any suggestions?
>

Encrypt the password and decrypt it just before sending it. Not really
safe; if someone else has access to the encrypted password and the
decrypt code they can easily decrypt it.

Or you could force the user to enter it in a browser.

But there's not a lot you can do to protect passwords when others have
access to the source code, also.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация