<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    XML::Enc - XML::Enc Encryption Support

VERSION
    version 0.05

SYNOPSIS
        my $decrypter = XML::Enc-&gt;new(
                                    {
                                        key                         =&gt; 't/sign-private.pem',
                                        no_xml_declaration          =&gt; 1,
                                    },
                                );
        $decrypted = $enc-&gt;decrypt($xml);

        my $encrypter = XML::Enc-&gt;new(
                                    {
                                        cert                =&gt; 't/sign-certonly.pem',
                                        no_xml_declaration  =&gt; 1,
                                        data_enc_method     =&gt; 'aes256-cbc',
                                        key_transport       =&gt; 'rsa-1_5',

                                    },
                                );
        $encrypted = $enc-&gt;encrypt($xml);

NAME
    XML::Enc - XML Encryption

METHODS
  new( ... )
    Constructor. Creates an instance of the XML::Enc object

    Arguments:

    key Filename of the private key to be used for decryption.

    cert
        Filename of the public key to be used for encryption.

    no_xml_declaration
        Do not return the XML declaration if true (1). Return it if false
        (0). This is useful for decrypting documents without the declaration
        such as SAML2 Responses.

    data_enc_method
        Specify the data encryption method to be used. Supported methods
        are:

        Used in encryption. Optional. Default method: aes256-cbc

        *   tripledes-cbc
            &lt;https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
            ml#tripledes-cbc&gt;

        *   aes128-cbc
            &lt;https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
            ml#aes128-cbc&gt;

        *   aes192-cbc
            &lt;https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
            ml#aes192-cbc&gt;

        *   aes256-cbc
            &lt;https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
            ml#aes256-cbc&gt;

        *   aes128-gcm &lt;https://www.w3.org/TR/xmlenc-core/#aes128-gcm&gt;

        *   aes192-gcm &lt;https://www.w3.org/TR/xmlenc-core/#aes192-gcm&gt;

        *   aes256-gcm &lt;https://www.w3.org/TR/xmlenc-core/#aes256-gcm&gt;

    key_transport
        Specify the encryption method to be used for key transport.
        Supported methods are:

        Used in encryption. Optional. Default method: rsa-1_5

        *   rsa-1_5
            &lt;https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
            ml#rsa-1_5&gt;

        *   rsa-oaep-mgf1p
            &lt;https://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht
            ml#rsa-oaep-mgf1p&gt;

  decrypt( ... )
    Main decryption function.

    Arguments:

    xml XML containing the encrypted data.

  encrypt( ... )
    Main encryption function.

    Arguments:

    xml XML containing the plaintext data.

AUTHOR
    Timothy Legge &lt;timlegge@cpan.org&gt;

COPYRIGHT AND LICENSE
    This software is copyright (c) 2022 by TImothy Legge.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

</pre></body></html>