12,065,678 members (46,670 online)
Rate this:
See more:
hi
i have the below packet of data:

i want to retrieve the below hashcode (32 digit):
128822e1bedbd09eaa210670615f48134

Can you provide me with algorithm to generate the 32 bit string?
Posted 25-Jun-13 2:14am

The question makes no sense. What is "retrieve"? You can generate (calculate) hash code, but there many different algorithms, not one.

But, most importantly: you show a string of the length 33 (characters) and call it "32 bit string". You apparently don't know what you want...

—SA
CPallini 25-Jun-13 8:08am

My 5. You even counted the number of characters.
Sergey Alexandrovich Kryukov 25-Jun-13 10:36am

Thank you, Carlo.
I counted number of characters after I saw it's odd without counting. Sometimes, I sense asymmetry from the first glance...
—SA
Sergey Alexandrovich Kryukov 25-Jun-13 10:44am

Not sure if OP will get it... :-)
—SA

you right, can you provide me with the algorithm about how to generate hashcode with 32 bit
Sergey Alexandrovich Kryukov 25-Jun-13 10:37am

As I say, there are many different algorithms. What, you don't care which one? You should just read some literature on the topic.
—SA

can you provide me with the all algorithm that generate a string with 32 bit?
For correction code must be 128822e1bedbd09eaa210670615f4813

Rate this:

## Solution 1

Please see my comments to the question: there is no one single algorithms.

Also, hash functions are different for different purposes. There are at least two distinct classes of them:
http://en.wikipedia.org/wiki/Hash_function[^],
http://en.wikipedia.org/wiki/Cryptographic_hash_function[^].

It depends on your purpose, which you did not bother to share with us.

You can learn the algorithms starting from the articles referenced above, but a good number of them are readily available from .NET FCL.

First of all, each and every .NET object of any type has one: http://msdn.microsoft.com/en-us/library/system.object.gethashcode.aspx[^].

And on the cryptographic side, a number of them are available: http://msdn.microsoft.com/en-us/library/system.security.cryptography.hashalgorithm.aspx[^].

—SA
v2
CPallini 25-Jun-13 11:14am

My 5.
Sergey Alexandrovich Kryukov 25-Jun-13 16:01pm

Thank you, Carlo.
—SA
Rate this:

## Solution 2

for more clarification:
I have the below packet or data :

i want an algorithm to generate the below code or string (which is 32 bit):
128822e1bedbd09eaa210670615f4813

i tried several algorithm using md5,sha1,...
but they generate me other code different then the code that i want.
is there any customisation for md5 algorithm or function to get the code that i want?

Top Experts
Last 24hrsThis month
 OriginalGriff 240 RDBurmon 100 CPallini 60 Sergey Alexandrovich Kryukov 49 CHill60 40
 Dave Kreskowiak 1,841 Richard MacCutchan 1,260 OriginalGriff 1,114 d@nish 980 CPallini 810