Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/perl-net-saml2/perl-xml-enc
XML::Enc Encryption Support
https://github.com/perl-net-saml2/perl-xml-enc
perl xenc xml xml-encryption
Last synced: about 1 month ago
JSON representation
XML::Enc Encryption Support
- Host: GitHub
- URL: https://github.com/perl-net-saml2/perl-xml-enc
- Owner: perl-net-saml2
- Created: 2022-03-26T13:35:03.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-10T01:41:02.000Z (over 1 year ago)
- Last Synced: 2024-09-01T15:41:11.403Z (4 months ago)
- Topics: perl, xenc, xml, xml-encryption
- Language: Perl
- Homepage: https://metacpan.org/dist/XML-Enc
- Size: 152 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
XML::Enc - XML::Enc Encryption SupportVERSION
version 0.13SYNOPSIS
my $decrypter = XML::Enc->new(
{
key => 't/sign-private.pem',
no_xml_declaration => 1,
},
);
$decrypted = $enc->decrypt($xml);my $encrypter = XML::Enc->new(
{
cert => 't/sign-certonly.pem',
no_xml_declaration => 1,
data_enc_method => 'aes256-cbc',
key_transport => 'rsa-1_5',},
);
$encrypted = $enc->encrypt($xml);NAME
XML::Enc - XML EncryptionMETHODS
new( ... )
Constructor. Creates an instance of the XML::Enc objectArguments:
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
* aes128-cbc
* aes192-cbc
* aes256-cbc
* aes128-gcm
* aes192-gcm
* aes256-gcm
key_transport
Specify the encryption method to be used for key transport.
Supported methods are:Used in encryption. Optional. Default method: rsa-oaep-mgf1p
* rsa-1_5
* rsa-oaep-mgf1p
* rsa-oaep
oaep_mgf_alg
Specify the Algorithm to be used for rsa-oaep. Supported algorithms
are:Used in encryption. Optional. Default method: mgf1sha1
* mgf1sha1
* mgf1sha224
* mgf1sha265
* mgf1sha384
* mgf1sha512
decrypt( ... )
Main decryption function.Arguments:
xml XML containing the encrypted data.
encrypt( ... )
Main encryption function.Arguments:
xml XML containing the plaintext data.
AUTHOR
Timothy LeggeCOPYRIGHT AND LICENSE
This software is copyright (c) 2023 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.