Page 1 of 1

Hash SHA1

Posted: Sun Apr 26, 2009 4:00 pm
by Marco Turco
Hi,
has anyone a routine to generate the SHA1 hash of a string ?

Thanks

Re: Hash SHA1

Posted: Mon Apr 27, 2009 12:34 am
by toninhofwi
Hi,

Yes, in Harbour, please see \harbour\contrib\hbcrypt\sha1.c

Regards,

Toninho.

Re: Hash SHA1

Posted: Mon Apr 27, 2009 8:34 am
by Marco Turco
Hi Toninho,
where can I download that file ?
I checked the xharbour contrib lib sources and that file doesn't exist.

Re: Hash SHA1

Posted: Mon Apr 27, 2009 8:52 am
by Rimantas
Marco Turco wrote:Hi Toninho,
where can I download that file ?
I checked the xharbour contrib lib sources and that file doesn't exist.
Toninho wroted in HARBOUR , not in xHARBour . So please , go www.harbour-project.org , dowload section , the you will find sources and what you need ...

Re: Hash SHA1

Posted: Mon Apr 27, 2009 4:01 pm
by Marco Turco
Thanks for the suggest,
but that file doesn't exist in the harbour sources also....

Re: Hash SHA1

Posted: Mon Apr 27, 2009 8:00 pm
by IBTC
Marco Turco wrote:but that file doesn't exist in the harbour sources also....
Download the source directly from http://sourceforge.net/projects/harbour-project

Here you will find the file:

http://harbour-project.svn.sourceforge. ... b/hbcrypt/

Re: Hash SHA1

Posted: Tue Apr 28, 2009 8:55 am
by Marco Turco
Hi IBTC,
thanks for your link.

I succesfully linked that file to my app but I have some problem about the use of this function.

Do you have a prg sample that show how it has to be used ?

Thanks in advance

Re: Hash SHA1

Posted: Tue Apr 28, 2009 10:18 am
by IBTC
Hi Marco,
Marco Turco wrote: Do you have a prg sample that show how it has to be used ?
Sorry, but I don't use this function.