I have a   This problem is two times:    I can read the entire file in an XML structure, delete the node, then type it into the stream that   How can I complete this?      FileStream  attached to an XML file which I would like to read directly in a SHA512 < / P>  
 SHA512.ComputeHash < Plugged in / code> It will be a performance loss, but I like to be able to remove the nodes as an operation in some currents and then somehow combines the streams together in one stream which  SHA512 ComputeHash (stream) can be passed in .   using 
 (var hash = (Var reader = XmlReader.creative ("input. Xml ") using the new SHA512Cng ()) using (var author = XmlWriter.Create (stream)) (var stream = new cryptostream (stream.null, hash, cryptostream mode.)) {While ( Reader.Read ()) {// ... write author node ...} author.flush (); stream.FlushFinalBlock (); var result = hash.hash;}    
 
No comments:
Post a Comment