in reply to Encrypt Data

Your question isn't very clear, but it appears you are trying to encrypt the data from a web form being submitted to a perl CGI, if that is the case all you need to do is make sure the form's ACTION specifies an https (s for secure) URL, and that your webserver supports SSL.