thanks Sean for your reply, i'm  using the c++ lib and was looking for the 
solution in the xml-securty-c.So is there a way to do this using the c++ 
libsthanks!!> Date: Thu, 2 Aug 2007 15:31:43 -0400> From: [EMAIL PROTECTED]> 
Subject: Re: SHA1 hash of canonicalized xml> To: security-dev@xml.apache.org> > 
k b wrote:> > How do i generate SHA1 hash of canonicalized xml  ?> > i just 
want the sha1 hash.> > > > I know while signing a doc one can get the hash,> > 
but in this case i just want the hash and don't want to go through the> > 
signing process. is there an easier way ?> > > > Yes, but you will have to use 
one of the following APIs:> > 1. javax.xml.crypto.dsig.TransformService if you 
are using the JSR 105 API> > 2. org.apache.xml.security.c14n.Canonicalizer> > > 
Use one of these APIs to canonicalize the node-set, and then use a> 
java.security.MessageDigest or java.security.DigestOutputStream to> digest the 
resulting bytes.> > --Sean
_________________________________________________________________
Find a local pizza place, movie theater, and more….then map the best route!
http://maps.live.com/default.aspx?v=2&ss=yp.bars~yp.pizza~yp.movie%20theater&cp=42.358996~-71.056691&style=r&lvl=13&tilt=-90&dir=0&alt=-1000&scene=950607&encType=1&FORM=MGAC01

Reply via email to