{"id":22442342,"url":"https://github.com/perl-net-saml2/perl-xml-enc","last_synced_at":"2026-03-10T23:03:59.555Z","repository":{"id":42583323,"uuid":"474357634","full_name":"perl-net-saml2/perl-XML-Enc","owner":"perl-net-saml2","description":"XML::Enc Encryption Support","archived":false,"fork":false,"pushed_at":"2023-10-10T01:41:02.000Z","size":156,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-01T15:41:11.403Z","etag":null,"topics":["perl","xenc","xml","xml-encryption"],"latest_commit_sha":null,"homepage":"https://metacpan.org/dist/XML-Enc","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perl-net-saml2.png","metadata":{"files":{"readme":"README","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-26T13:35:03.000Z","updated_at":"2023-07-08T00:16:27.000Z","dependencies_parsed_at":"2023-01-22T14:46:09.586Z","dependency_job_id":null,"html_url":"https://github.com/perl-net-saml2/perl-XML-Enc","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl-net-saml2%2Fperl-XML-Enc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl-net-saml2%2Fperl-XML-Enc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl-net-saml2%2Fperl-XML-Enc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perl-net-saml2%2Fperl-XML-Enc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perl-net-saml2","download_url":"https://codeload.github.com/perl-net-saml2/perl-XML-Enc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228397816,"owners_count":17913544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["perl","xenc","xml","xml-encryption"],"created_at":"2024-12-06T02:18:50.278Z","updated_at":"2026-03-10T23:03:59.515Z","avatar_url":"https://github.com/perl-net-saml2.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    XML::Enc - XML::Enc Encryption Support\n\nVERSION\n    version 0.15\n\nSYNOPSIS\n        my $decrypter = XML::Enc-\u003enew(\n            {\n                key                =\u003e 't/sign-private.pem',\n                no_xml_declaration =\u003e 1,\n            },\n        );\n        $decrypted = $enc-\u003edecrypt($xml);\n\n        my $encrypter = XML::Enc-\u003enew(\n            {\n                cert               =\u003e 't/sign-certonly.pem',\n                no_xml_declaration =\u003e 1,\n                data_enc_method    =\u003e 'aes256-cbc',\n                key_transport      =\u003e 'rsa-1_5',\n\n            },\n        );\n        $encrypted = $enc-\u003eencrypt($xml);\n\nNAME\n    XML::Enc - XML Encryption\n\nMETHODS\n  new( ... )\n    Constructor. Creates an instance of the XML::Enc object\n\n    Arguments:\n\n    key Filename of the private key to be used for decryption.\n\n    cert\n        Filename of the public key to be used for encryption.\n\n    no_xml_declaration\n        Do not return the XML declaration if true (1). Return it if false\n        (0). This is useful for decrypting documents without the declaration\n        such as SAML2 Responses.\n\n    data_enc_method\n        Specify the data encryption method to be used. Supported methods\n        are:\n\n        Used in encryption. Optional. Default method: aes256-cbc\n\n        *   tripledes-cbc\n            \u003chttps://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht\n            ml#tripledes-cbc\u003e\n\n        *   aes128-cbc\n            \u003chttps://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht\n            ml#aes128-cbc\u003e\n\n        *   aes192-cbc\n            \u003chttps://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht\n            ml#aes192-cbc\u003e\n\n        *   aes256-cbc\n            \u003chttps://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht\n            ml#aes256-cbc\u003e\n\n        *   aes128-gcm \u003chttps://www.w3.org/TR/xmlenc-core/#aes128-gcm\u003e\n\n        *   aes192-gcm \u003chttps://www.w3.org/TR/xmlenc-core/#aes192-gcm\u003e\n\n        *   aes256-gcm \u003chttps://www.w3.org/TR/xmlenc-core/#aes256-gcm\u003e\n\n    key_transport\n        Specify the encryption method to be used for key transport.\n        Supported methods are:\n\n        Used in encryption. Optional. Default method: rsa-oaep-mgf1p\n\n        *   rsa-1_5\n            \u003chttps://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht\n            ml#rsa-1_5\u003e\n\n        *   rsa-oaep-mgf1p\n            \u003chttps://www.w3.org/TR/2002/REC-xmlenc-core-20021210/Overview.ht\n            ml#rsa-oaep-mgf1p\u003e\n\n        *   rsa-oaep \u003chttp://www.w3.org/2009/xmlenc11#rsa-oaep\u003e\n\n    oaep_mgf_alg\n        Specify the Algorithm to be used for rsa-oaep. Supported algorithms\n        are:\n\n        Used in encryption. Optional. Default method: mgf1sha1\n\n        *   mgf1sha1 \u003chttp://www.w3.org/2009/xmlenc11#mgf1sha1\u003e\n\n        *   mgf1sha224 \u003chttp://www.w3.org/2009/xmlenc11#mgf1sha224\u003e\n\n        *   mgf1sha265 \u003chttp://www.w3.org/2009/xmlenc11#mgf1sha256\u003e\n\n        *   mgf1sha384 \u003chttp://www.w3.org/2009/xmlenc11#mgf1sha384\u003e\n\n        *   mgf1sha512 \u003chttp://www.w3.org/2009/xmlenc11#mgf1sha512\u003e\n\n    oaep_params\n        Specify the OAEPparams value to use as part of the mask generation\n        function (MGF). It is optional but can be specified for rsa-oaep and\n        rsa-oaep-mgf1p EncryptionMethods.\n\n        It is base64 encoded and stored in the XML as OAEPparams.\n\n        If specified you MAY specify the oaep_label_hash that should be\n        used. You should note that not all implementations support an\n        oaep_label_hash that differs from that of the MGF specified in the\n        xenc11:MGF element or the default MGF1 with SHA1.\n\n        The oaep_label_hash is stored in the DigestMethod child element of\n        the EncryptionMethod.\n\n    oaep_label_hash\n        Specify the Hash Algorithm to use for the rsa-oaep label as\n        specified by oaep_params.\n\n        The default is sha1. Supported algorithms are:\n\n        *   sha1 \u003chttp://www.w3.org/2000/09/xmldsig#sha1\u003e\n\n        *   sha224 \u003chttp://www.w3.org/2001/04/xmldsig-more#sha224\u003e\n\n        *   sha256 \u003chttp://www.w3.org/2001/04/xmlenc#sha256\u003e\n\n        *   sha384 \u003chttp://www.w3.org/2001/04/xmldsig-more#sha384\u003e\n\n        *   sha512 \u003chttp://www.w3.org/2001/04/xmlenc#sha512\u003e\n\n    key_name\n        Specify a key name to add to the KeyName element. If it is not\n        specified then no KeyName element is added to the KeyInfo\n\n  decrypt( ... )\n    Main decryption function.\n\n    Arguments:\n\n    xml XML containing the encrypted data.\n\n  encrypt( ... )\n    Main encryption function.\n\n    Arguments:\n\n    xml XML containing the plaintext data.\n\nAUTHOR\n    Timothy Legge \u003ctimlegge@cpan.org\u003e\n\nCOPYRIGHT AND LICENSE\n    This software is copyright (c) 2024 by TImothy Legge.\n\n    This is free software; you can redistribute it and/or modify it under\n    the same terms as the Perl 5 programming language system itself.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperl-net-saml2%2Fperl-xml-enc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperl-net-saml2%2Fperl-xml-enc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperl-net-saml2%2Fperl-xml-enc/lists"}