decrypt-xml()
Decrypts an EncryptedData
XML element which was encrypted using XML Encryption and replaces it with its unenrypted counterpart.
encrypted_data
: a node-set containing theEncryptedData
element in thehttp://www.w3.org/2001/04/xmlenc#
namespace as its first node,or an encrypted DOM document or an XML string. Only the first node of a provided node-set will be decrypted.
private_key
: Private key to decrypt the symmetric encryption key provided in theEncryptedKey
element.See
decrypt()
for the expected format of the private key.passphrase
(optional): passphrase for decrypting an encryptedprivate_key
(defaults to""
).
Returns true()
if encrypted_data
was successfully decrypted, false()
otherwise.
Example
Last updated