Click here to Skip to main content
15,881,763 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
i have the below packet of data:

data=kabam_id=57908157&naid=57907818&access_token=92fa8b0d-1cd2-4e0d-82e5-f828e98891f2&mobileid=842a5358cb5c4a8dc6c0e07e5a2ce192&platformid=203&become_user_id=&become_password=&debug=0&gver=13.0.0&gameSlot=8&gameNumber=1365345604&gameKey=

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

Can you provide me with algorithm to generate the 32 bit string?
Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 25-Jun-13 7:54am    
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    
And I finally added a real formal answer, please see.
Not sure if OP will get it... :-)
—SA
mradelie 25-Jun-13 8:37am    
you right, can you provide me with the algorithm about how to generate hashcode with 32 bit

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
 
Share this answer
 
v2
Comments
CPallini 25-Jun-13 11:14am    
My 5.
Sergey Alexandrovich Kryukov 25-Jun-13 16:01pm    
Thank you, Carlo.
—SA
for more clarification:
I have the below packet or data :

data=kabam_id=57908157&naid=57907818&access_token=92fa8b0d-1cd2-4e0d-82e5-f828e98891f2&mobileid=842a5358cb5c4a8dc6c0e07e5a2ce192&platformid=203&become_user_id=&become_password=&debug=0&gver=13.0.0&gameSlot=8&gameNumber=1365345604&gameKey=

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?

Any advice please
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900