Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > Phex (Cross-platform) > Help & Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

Help & Support Information on the useage and anything else of Phex
- Unless you are using or asking about PHEX, please do not post in this section
(Get ”Phex 3.4.2.163 universal" now)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old February 28th, 2008
Novicius
 
Join Date: February 28th, 2008
Location: The Netherlands
Posts: 4
jandeechte is flying high
Post 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.

Can anyone help me out on this one?

Jan de Echte
Reply With Quote
  #2 (permalink)  
Old February 28th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

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
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #3 (permalink)  
Old February 28th, 2008
Novicius
 
Join Date: February 28th, 2008
Location: The Netherlands
Posts: 4
jandeechte is flying high
Default 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
Reply With Quote
  #4 (permalink)  
Old February 28th, 2008
Novicius
 
Join Date: February 28th, 2008
Location: The Netherlands
Posts: 4
jandeechte is flying high
Default

PS
the hashes are fulle different, not only the upper/low cases......
Reply With Quote
  #5 (permalink)  
Old February 28th, 2008
Phex Developer
 
Join Date: May 8th, 2001
Location: Stuttgart, Germany
Posts: 988
GregorK is flying high
Default

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
__________________
Reply With Quote
  #6 (permalink)  
Old February 29th, 2008
Novicius
 
Join Date: February 28th, 2008
Location: The Netherlands
Posts: 4
jandeechte is flying high
Default

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

Jan de Echte
Reply With Quote
  #7 (permalink)  
Old February 29th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Quote:
Originally Posted by jandeechte View Post
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.
Attached Files
File Type: txt sha1_berechnen.txt (1.7 KB, 314 views)
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
  #8 (permalink)  
Old February 29th, 2008
arne_bab's Avatar
Draketo, small dragon.
 
Join Date: May 31st, 2002
Location: Heidelberg, Germany
Posts: 1,881
arne_bab is a great assister to others; your light through the dark tunnel
Default

Quote:
Originally Posted by arne_bab View Post
Please try the attached python script.
And this version (cleaned up a bit).
Attached Files
File Type: txt sha1_berechnen.txt (1.9 KB, 289 views)
__________________

-> put this banner into your own signature! <-
--
Erst im Spiel lebt der Mensch.
Nur ludantaj homoj vivas.
GnuFU.net - Gnutella For Users
Draketo.de - Shortstories, Poems, Music and strange Ideas.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


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

Copyright © 2020 Gnutella Forums.
All Rights Reserved.