Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   Help & Support (https://www.gnutellaforums.com/help-support/)
-   -   SHA1 value (https://www.gnutellaforums.com/help-support/81968-sha1-value.html)

jandeechte February 28th, 2008 03:59 AM

SHA1 value
 
Hi there

because of comparison reasons I'd like to know how Phax calculate the SHA1 hashcode.
Using other programms to calculate the SHA1-hash gives me a different value than Phex does fot the same file.:mad:

Can anyone help me out on this one?

Jan de Echte

arne_bab February 28th, 2008 06:04 AM

The only reason I can think of for this is, that some programs use lowercase base32 encoding for the sha1, while Gnutella always uses uppercase base32:
Base32 - Wikipedia, the free encyclopedia

jandeechte February 28th, 2008 06:59 AM

Know any programm?
 
That could be the matter.
I'll try to check this out.
Meanwhile;
You (or anyone else) knows a programm that can generate the desired hashcode?

Jan de Echte

jandeechte February 28th, 2008 07:01 AM

PS
the hashes are fulle different, not only the upper/low cases......

GregorK February 28th, 2008 10:46 AM

Phex uses source contributed from Philippe Verdy to the Bitzi project to calculate SHA1

SourceForge.net Repository - [phex] Index of /phex/trunk/src/main/java/com/bitzi/util

Bitzi Bitcollider Utility
Bitzi's Bitcollider SourceForge Project

jandeechte February 29th, 2008 06:12 AM

TNX
couldn't find any full program calculating the same hash as Phex does.
Gonna work with this info.

Jan de Echte

arne_bab February 29th, 2008 01:51 PM

1 Attachment(s)
Quote:

Originally Posted by jandeechte (Post 309767)
TNX
couldn't find any full program calculating the same hash as Phex does.
Gonna work with this info.

Jan de Echte

Please try the attached python script.

arne_bab February 29th, 2008 01:55 PM

1 Attachment(s)
Quote:

Originally Posted by arne_bab (Post 309790)
Please try the attached python script.

And this version (cleaned up a bit).


All times are GMT -7. The time now is 11:33 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.