Re: Re:simple text encrypt / decrypt

Tech-Archive recommends: Fix windows errors by optimizing your registry




"rahulji" <rahuljiv@xxxxxxxxx> wrote in message news:064c21f4734641fa97b49da4a16693d4@xxxxxxxxxxxxx
Hi,
I have a different requirement.
i wrote a script which will contain an username and password of an FTP
server to which it will upload the data.

i want to encrypt these username and password using DPAPIs so that no one
can read them.

can anyone help in this regard?

url:http://www.ureader.com/msg/1675127.aspx

There is some good advice in that link.

If your script needs to use the actual username/password, it will need to contain code to decrypt the encrypted values. Anyone reading this script could take a copy, and modify it to display the unencrypted credentials instead of using them to access the FTP server.

The only way this can be done securely (imho) is to have the operator provide the encryption key interactively. Of course, there is not much difference between doing it that way and having the operator provide the actual username and password.

/Al


.



Relevant Pages

  • Re: FTP in ASP.NET C#
    ... It has native .NET classes that will allow you to use the FTP protocol. ... >I would like to have my application FTP a file to a server after a user ... > ' This script assumes the file to be FTP'ed is in the same directory as ... > ' If there are multiple files to put, we need to use the command ...
    (microsoft.public.dotnet.languages.csharp)
  • Script endlessly looping
    ... The following script has a loop that executes ftp to look for a trigger ... trigger file and renames the data file on the remote server. ...
    (comp.unix.shell)
  • Re: Why would it appear to my scripts that a server theyre connecting to has gone away (using Net::F
    ... ftp server. ... LWP::DebugFile is sufficient to prevent the script from freezing or ... and uses ftp to transfer files from a clients web server to their ... LWP is asked to retrieve a few MB from the same server (in the LWP ...
    (comp.lang.perl.misc)
  • Re: Please help a novice..!!
    ... Create the username you want to use. ... Create an actual directory somewhere on your server (usually under ... > I'm trying to set up multiple FTP "sites" on a IIS 4.0 server. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: how to encrypt password stored in ftp script
    ... I need that script to run everyday automatically on machine ... people form modifying script to access the FTP server for different ... uploading from the system, is to find the most secure way of doing it, ...
    (comp.lang.perl.misc)