CreaSign

Decrypt a XML File encrypted using XML-ENC standard

To decrypt an XML file encrypted using XML-ENC standard (http://www.w3.org/TR/xmlenc-core), follow these steps:

  1. Create a new CreaSign object.
  2. Load the encrypted XML document.
  3. Call the Decrypt method.
' Create CreaSignClientIE
Set cs=CreateObject("CreaSignClientIE.CreaSign") 

' Load a sample xml from file
Set doc=CreateObject("CreaSignClientIE.Data") 
doc.load "files\encrypted.xml"

Set resultData = cs.Decrypt(doc)

' Save the result to a file
saveTo="files\decrypted.xml"
resultData.save saveTo

WScript.Echo "Encrypted file saved to: " & saveTo


Send comments on this topic.

(c) CREA 2002-2007 www.creasign.si