🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2851

Re: Crypto SHA1 hash

#2851
From: Bob Piskac
Date: Sat, 02 Dec 2006 21:12
18 lines
1326 bytes
Here is my error.  Never mind.

      sizeof("bob") - 1, 0))


Bob Piskac wrote:
> I am trying to SHA1 hash the string: bob

> //--------------------------------------------------------------------
> // Hash a BYTE string.
> 
> if (CryptHashData(
>     hOriginalHash,
>     (BYTE*)"bob",
>     sizeof("bob"), 0))
> {
>    printf("An original hash has been created. \n");
> }
Technical Details
Message-ID: <4571ec2b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <456f2981$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,549f3a6d72a98b67
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 02 Dec 2006 16:12:46 -0500
From: Bob Piskac <bob@pbsoftware.com>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Crypto SHA1 hash
References: <456f2981$1@newsgroups.borland.com>
In-Reply-To: <456f2981$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 68.249.14.21
Message-ID: <4571ec2b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1165093931 68.249.14.21 (2 Dec 2006 13:12:11 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail