robrichards / xmlseclibs

A PHP library for XML Security
BSD 3-Clause "New" or "Revised" License
386 stars 180 forks source link

How to use XMLSecEnc to implement data encryption? #255

Closed rizaljamhari closed 11 months ago

rizaljamhari commented 11 months ago

Hi. I'm new to XML. I wanted to sign and then encrypt the XML.

The README only provides how to sign the XML, would you happen to have any example on how to encrypt it? I already walked through the XMLSecEnc class but have no idea how to implement it.

Thanks

guicabralps commented 11 months ago

Hi, take a look on this example: https://github.com/robrichards/xmlseclibs/blob/master/tests/xmlsec-encrypt.phpt Could help you