Hash SHA1

Hash SHA1

Postby Marco Turco » Sun Apr 26, 2009 4:00 pm

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

Thanks
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Hash SHA1

Postby toninhofwi » Mon Apr 27, 2009 12:34 am

Hi,

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

Regards,

Toninho.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Re: Hash SHA1

Postby Marco Turco » Mon Apr 27, 2009 8: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Hash SHA1

Postby Rimantas » Mon Apr 27, 2009 8: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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Re: Hash SHA1

Postby Marco Turco » Mon Apr 27, 2009 4:01 pm

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

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Hash SHA1

Postby IBTC » Mon Apr 27, 2009 8: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/
Last edited by IBTC on Tue Apr 28, 2009 10:13 am, edited 1 time in total.
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
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany

Re: Hash SHA1

Postby Marco Turco » Tue Apr 28, 2009 8: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Hash SHA1

Postby IBTC » 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
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 79 guests