D5: Passing an encrypted password to a Java Scriptlet


I currently have a Delphi 5 program that uses the ClientSocket Component to
pass a string to a Java Scriptlet via the Internet. This works fine, however
now I need to implement some security into it. Specifically I need to send a
username and password in order to initiate dialog.

Is this possible?

Any recommendations on the best way to encrypt the password?


Dan Tiedeman