Re: how to encrypt password stored in ftp script
- From: cartercc <cartercc@xxxxxxxxx>
- Date: Mon, 12 Jan 2009 05:45:06 -0800 (PST)
On Jan 12, 3:10 am, Woland99 <wolan...@xxxxxxxxx> wrote:
Howdy - I want my script to make connection to FTP server and get some
files. I need that script to run everyday automatically on machine
that many people
have access to - but I do not want them to know the username or
password for that
FTP server. Is there a way to save encrypted password with the script
but prevent
people form modifying script to access the FTP server for different
purposes?
Hiding your username and password in this circumstance is impossible
-- the remote server needs both the username and password in order to
authenticate the connection, and any automated solution will have to
include this in a form that can be read by the remote server.
My solution is to 'hide' the username and password in a separate
configuration file that only the script can open and read, but of
course if it's in any kind of file it can be hacked.
If you have access to the remote server, you could write a script to
push your data from the server to your local machine, that is, FTP
into your machine from the remote server.
You can also enable accounting on the remote machine to log FTP
sessions so as to detect unauthorized access. This may or may not meet
your needs.
The bottom line is that if you really need to secure your username and
password, don't store them in any file on your machine. Manually
FTPing to the remote server is the price you pay for security.
CC
.
- References:
- how to encrypt password stored in ftp script
- From: Woland99
- how to encrypt password stored in ftp script
- Prev by Date: Re: passing value
- Next by Date: FAQ 3.17 Is it safe to return a reference to local or lexical data?
- Previous by thread: Re: how to encrypt password stored in ftp script
- Next by thread: Re: how to encrypt password stored in ftp script
- Index(es):
Relevant Pages
|