santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Labarthe Dubois" <dub...@consist.com.ar>
Subject Re: xml encryption/decryption of binary data
Date Mon, 03 Apr 2006 18:12:51 GMT
xml encryption/decryption of binary datawhy don´t you just use Java crypt primitives for that?

  ----- Original Message ----- 
  From: Larchier Christophe 
  To: security-dev@xml.apache.org 
  Sent: Friday, March 31, 2006 4:41 AM
  Subject: RE: xml encryption/decryption of binary data


  Nobody uses xml encryption with binary datas ???

    -----Message d'origine-----
    De : Larchier Christophe [mailto:clarchier@axway.com]
    Envoyé : mercredi 29 mars 2006 17:41
    À : security-dev@xml.apache.org
    Objet : xml encryption/decryption of binary data


    Hi all, 

    When I use apache xml security library to encrypt an xml document like the following one,
the xml header is loosen. 

    <?xml version="1.0" encoding="UTF-8"?> 

    <PurchaseOrder> 
    ... 
    </PurchaseOrder> 



    After encrypting/decrypting, I get only : 

    <PurchaseOrder> 
    ... 
    </PurchaseOrder> 



    I use the doFinal() method to encrypt/decrypt with the all document as parameter : 
    xmlCipher.doFinal(doc, doc); 



    How do you manage this ? 

    Is it possible to do xml encryption with binary datas ? 
    I have tried to insert my binary datas into a dom document, but some special characters
are added (to replace < > \). 

    Thanks, 
    Christophe 

Mime
View raw message