Re: Am I doing this right. Hashing a text file

From: Henning Krause (newsgroup.no_at_spam.infinitec.de)
Date: 05/28/04

  • Next message: Eugene Mayevski: "Ann: Secure your internet communication with SecureBlackbox.NET"
    Date: Fri, 28 May 2004 22:19:02 +0200
    
    

    Hello,

    I think your code is right... use this method myself.

    Greetings,
    Henning Krause
    ==========================
    Visit my website: http://www.infinitec.de
    Try my free Exchange Explorer: Mistaya
    (http://www.infinitec.de/?page=products)

    "Anders Jansson" <anders.jansson@araelektroniks.se> wrote in message
    news:39C1BF44-2FBD-4283-A559-C87C87EAABF4@microsoft.com...
    > Hi!
    >
    > Just wanted a confirmation about hashing an entire file correctly.
    > Does this code really read all bytes from the file while calculating the
    hash value?
    >
    > --Code MC++ start
    >
    > Byte [] HashFile(String fileName)
    > {
    > if (File::Exists(fileName))
    > {
    > System::IO::FileStream * file = File::OpenRead(fileName);
    >
    > // This is one implementation of the abstract class MD5.
    > MD5 md5 = new MD5CryptoServiceProvider();
    >
    > return = md5.ComputeHash(file);
    > }
    > }
    > --Code MC++ end
    >
    > /Thanks


  • Next message: Eugene Mayevski: "Ann: Secure your internet communication with SecureBlackbox.NET"

    Relevant Pages

    • Re: CDO.Addressee.1 error c0070005 - GetFreeBusy
      ... Henning Krause ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ...
      (microsoft.public.exchange2000.development)
    • Re: Problems with FreeBusy XML
      ... >> Visit my website: http://www.infinitec.de ... >> Try my free Exchange Explorer: Mistaya ... And for that response, the ContentType is ...
      (microsoft.public.exchange.development)
    • Re: Getting EntryID from WebDAV
      ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ... > Ahh, it works a little differently from SQL then. ...
      (microsoft.public.exchange.applications)
    • Re: Workflow-Problem, WebDAV?
      ... Henning Krause ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ...
      (microsoft.public.exchange2000.development)
    • Re: Info about user account in which current process is running
      ... Henning Krause ... Visit my website: http://www.infinitec.de ... Try my free Exchange Explorer: Mistaya ...
      (microsoft.public.dotnet.security)