"rahulji" <rahuljiv@xxxxxx> wrote in message
news:064c21f4734641fa97b49da4a16693d4@xxxxxx
Quote:
> 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