Article View: borland.public.cppbuilder.internet.socket
Article #2176Re: IdHashMessageDigest5 Exception
From: Remy Lebeau (TeamB)
Date: Thu, 13 Jul 2006 20:21
Date: Thu, 13 Jul 2006 20:21
12 lines
1318 bytes
1318 bytes
"Skaarak" <skaarak@NOakamailSPAM.com> wrote in message news:44b69496$1@newsgroups.borland.com... > I'm trying to get the hash of a file, I'm using this code: You are hashing just the filename, not the actual file contents. If you are trying to has the contents, then you need to use HashValue(TStream) instead of HashValue(String). You can load the file data using a TFileStream. Gambit
Technical Details
Message-ID:
<44b6ab81$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<44b69496$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,266f2c6a9c0ef055 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44b69496$1@newsgroups.borland.com> Subject: Re: IdHashMessageDigest5 Exception Date: Thu, 13 Jul 2006 13:21:44 -0700 Lines: 14 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44b6ab81$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152822145 68.69.17.41 (13 Jul 2006 13:22:25 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail