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?