Quote:
Originally Posted by berkay2578
don't know if the language matters but I used c++ for that
initval is 0xABCDEF00 for nfs games.
|
Well, it kinda matters for me, since I'm not that familar with the different types of hashing functions, other than MD5, SHA, and CRC.
And I would have to decide whether to use the builtin modules, find one off the internet, or build my own.
To put it into fake code (should build a logic diagram, but meh):
b = Berkay's implementation of jenkens function
if (b == Python2/3) {
BBBAsk for source. (and compare to search results)
BBBAdds code to make it usable
}
else if (b == C) {
BBBAsk for source. (and compare to search results)
BBBimports ctypes to make it usable
}
else {
BBBsearches for a Python compatible source code
BBBif (results = python function or results == c method) {
BBBBBBuse that method
BBB}
BBBelse {
BBBBBBimplement hashing function myself
BBB}
}
I also took a look at the __builtins__.hash() fuction and the hashlib module that come with the base package of Python, and well, they only come with the main CRC/cryptographic functions. Not the Jenkins hashing function. (which I assume is what all post 2000 EAGL games use)
Now that you say that the function's in the exe, I'll see if I can hook the exe's function through the ctypes module.
That's like the most... laziest way to do it.