SHA1-hashing question :-)
Posted: 27 Dec 2009 15:29
I'm trying to create an application that must be compatible with shareaza's SHA1 hashing - but it seems like I can't find out how shareaza makes the hash-codes
An examle:
In my library I put a acsii-file called "foobar.txt". It contains the text "foobar" and has the size of 6 bytes / octets. ShareAza hashes the file to:
RBB5P6JECYQR32PLXFR76THCQESZGKDY
When I perform a SHA1-hash of the file content ("foobar") and encode the SHA1-digest into base32 (RFC-4648 compliant) I get:
77LU7CA5EELCIY5Z57UY7YSM754C7EZF
What am I doing wrong?
An examle:
In my library I put a acsii-file called "foobar.txt". It contains the text "foobar" and has the size of 6 bytes / octets. ShareAza hashes the file to:
RBB5P6JECYQR32PLXFR76THCQESZGKDY
When I perform a SHA1-hash of the file content ("foobar") and encode the SHA1-digest into base32 (RFC-4648 compliant) I get:
77LU7CA5EELCIY5Z57UY7YSM754C7EZF
What am I doing wrong?