shug94 has asked for the wisdom of the Perl Monks concerning the following question:

I have an xml message that I need to send across a network. I am currently using LWP::UserAgent, and HTTP::Request to construct the headers of this request.

One of the fields of the xml needs to be encrypted using TLS, but the rest must remain in plain utf-8 text.

What I need is a function which will allow me to input a string, and receive the result of that string being encrypted using TLS.

I have had a look at Net::SMTP::TLS, and AnyEvent::TLS, but both seem to encrypt an ENTIRE message with TLS before then sending it onwards.

Does anyone know of a Perl module that I could use to do this?

Cheers,
Shug

Replies are listed 'Best First'.
Re: Encryption using TLS
by Anonymous Monk on Sep 18, 2009 at 00:48 UTC
      Thankyou for the feedback! I have rechecked the task and now see that I AM supposed to use TLS to encrypt the ENTIRE HTTP Request message.

      I am running on an apache HTTPD Server, so maybe I will use mod_ssl.

      Cheers.