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

Hi,

Are there any Perl libraries for XML Signature and XML Encryption?

I tried a search on CPAN, but didn't have much success. Any hint would be helpful.

Thanks!
  • Comment on XML Signature and XML Encryption in Perl

Replies are listed 'Best First'.
Re: XML Signature and XML Encryption in Perl
by apl (Monsignor) on Sep 09, 2008 at 19:53 UTC
    I'm not certain that this is what you're looking for, but RPC::XML::Procedure supports a signature method.

Re: XML Signature and XML Encryption in Perl
by jettero (Monsignor) on Sep 09, 2008 at 19:33 UTC
    What kind of signature and what kind of encryption? I'm sure it's on CPAN. Might want to check out Crypt::*.

    -Paul

Re: XML Signature and XML Encryption in Perl
by dHarry (Abbot) on Sep 10, 2008 at 11:14 UTC

    I assume you mean W3C’s XML Signature and Encryption . Last time I looked at it seriously, it was very much a draft and there was hardly a decent implementation for it. A quick scan of the W3C pages show that things have improved.

    There does not appear to be a Perl module for these XML technologies at CPAN. The only thing I was able to find is an implementation of the (related) Canonical XML recommendation, see for example: XML-Canonical.

    Your best bet is probably the XML Security Library which is an open source alternative under the MIT license. It’s a C-library based on LibXML2. It supports the XML standards you’re looking for.

    If you’re willing to spend money and don’t mind other "religions" then there are more alternatives. You can check W3C for this.

    Hope this helps

      You are right. That's exactly what I am searching for. I also ran across the XML Canonical module, but couldn't find anything directly related to Signature or Encryption.

      I'll check out the C library you mentioned. And otherwise Java and .NET seem to have some implementations too. I was just curious if Perl has something equivalent.

      Thank you for your answer.