FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Hash SHA1
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Hash SHA1
Posted: Sun Apr 26, 2009 04:00 PM

Hi,
has anyone a routine to generate the SHA1 hash of a string ?

Thanks

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 182
Joined: Tue Oct 18, 2005 10:01 AM
Re: Hash SHA1
Posted: Mon Apr 27, 2009 12:34 AM

Hi,

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

Regards,

Toninho.

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Hash SHA1
Posted: Mon Apr 27, 2009 08:34 AM

Hi Toninho,
where can I download that file ?
I checked the xharbour contrib lib sources and that file doesn't exist.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Hash SHA1
Posted: Mon Apr 27, 2009 08:52 AM
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 ...
Rimantas U.
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Hash SHA1
Posted: Mon Apr 27, 2009 04:01 PM

Thanks for the suggest,
but that file doesn't exist in the harbour sources also....

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 103
Joined: Sat Oct 18, 2008 08:13 PM
Re: Hash SHA1
Posted: Mon Apr 27, 2009 08:00 PM
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/
Best Regards,

Ruediger Alich



---

HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Hash SHA1
Posted: Tue Apr 28, 2009 08:55 AM

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

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 103
Joined: Sat Oct 18, 2008 08:13 PM
Re: Hash SHA1
Posted: Tue Apr 28, 2009 10:18 AM
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.
Best Regards,

Ruediger Alich



---

HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper

Continue the discussion