Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:37:58+00:00 2026-06-16T03:37:58+00:00

I am using C# with RHash in order to calculate the btih hashes of

  • 0

I am using C# with RHash in order to calculate the btih hashes of of file.
Currently I’m using 3 tools in order to generate the btih hash:

  1. rhash-1.2.9-src\bindings\mono with librhash-1.2.9-win dll
  2. rhash-1.2.9-win32 command line tool
  3. uTorrent

The problem is that every tool generates different btih signatures for the same file (the photo was taken by me, it’s royal free):

1:  2FF7858CC0A0B216C3676A807D619FA30101E45F
2:  E6F07BB3C3B3B67531C84E3452980698AC1B0DAA  A:\IMG_0400.JPG
3:  D0B96839A14A8C45BB81AD157805AE73425998E5

For the C# hash generation I use Hasher.GetHashForFile(f.Name, HashType.BTIH); and rhash --bith in the cmd tool.

What am I doing wrong? Is there another way to calculate the btih?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:37:59+00:00Added an answer on June 16, 2026 at 3:37 am

    The difference between the first two is that, according to the RHash source code, BTIH hashes requires additional data to be correctly computed.

    The init_btih_data function in calc_sums.c is documented with:

    Initialize BTIH hash function. Unlike other algorithms BTIH
    requires more data for correct computation.

    In test_hashes.c, the BTIH examples are actually treated differently depending on whether USE_BTIH_WITH_TEST_FILENAME has been defined.

    That init_btih_data function (which only seems to get called when running the command line application) in turn calls the rhash_trasmit function a number of times depending on various parameters. At a minimum, it will call it twice, which probably explains the difference between the first two. It can, however, call it a number of other times, which I think explains the difference we see with uTorrent.

    The difficulty is that while the unmanaged DLL exposes the rhash_trasmit function, the .NET bindings do not, which means that it is not possible to supply the additional data that is expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ASIHTTPRequest, I downloaded a zip file containing a folder with several audio files.
When using keys %:: to get a list of the currently loaded root namespaces,
Using the following database table structure: Order Table: OrderId OrderName OrderItem Table: OrderId ItemId
Is it possible using a certain hash function and method (the division method, or
So I wrote a simple Hash class, and when using the visual studio environment
Using a JEditorPane, is there any way to tell if the caret is currently
I am new to knockout using knockout2.1.0. I have an external java script file,
I'm trying to create a std::unordered_map, using a user-defined hash function and equality predicate,
Using Django, how do I generate the value of a field the first time
Using JSTL's forEach tag, is it possible to iterate in reverse order?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.