wc3edit.net
https://forum.wc3edit.net/

Hash Function
http://forum.wc3edit.net/deprotection-cheating-f64/hash-function-t35723.html
Page 1 of 1

Author:  qooowinnerooop [ November 27th, 2018, 12:23 pm ]
Post subject:  Hash Function

is there any way to decode a hash function to know a hidden activator like this?

Code:
if StringHash(SubString(GetEventPlayerChatString(),0,'d'))==-$50A9C479


in order to hide my activator i would like to know how to make a stringhash like this, can anyone show me the way to make it and decode it? Thanks a lots

Author:  clanhinata [ November 27th, 2018, 1:22 pm ]
Post subject:  Re: Hash Function

qooowinnerooop wrote:
is there any way to decode a hash function to know a hidden activator like this?

Yes
qooowinnerooop wrote:
in order to hide my activator i would like to know how to make a stringhash like this, can anyone show me the way to make it and decode it? Thanks a lots

Code:
Native StringHash takes string whichString returns integer

Author:  nuzamacuxe [ November 28th, 2018, 1:23 am ]
Post subject:  Re: Hash Function

There's no way to decode StringHash.

Author:  devoltz [ November 29th, 2018, 11:29 am ]
Post subject:  Re: Hash Function

nuzamacuxe wrote:
There's no way to decode StringHash.
I dont doubt hinata's autism, so he probably can decode stringhash.

Author:  null [ November 30th, 2018, 8:07 pm ]
Post subject:  Re: Hash Function

Decoding StringHash is possible, but its almost near to impossible to find out the original cheat code from the hash value.

Think of a cheat code you want to use. For example, you want to use "cheat" as the cheat code. Create a test map where you print the hash value of cheat:
Code:
call BJDebugMsg(StringHash("cheat"))


Then you know the hash value and you can use that information in the original map. Let's assume the hash value is 1234. Input;
Code:
if StringHash(GetEventPlayerChatString())==1234 then

...
endif

In your code, you basically use this condition:
Code:
StringHash(GetEventPlayerChatString()) ==  StringHash("cheat")


But replace the StringHash("cheat") with the calculated value, so you don't actually have to put the cheat code into the map script. As I said it is pretty much impossible to find out the original cheat code from the hash value. Not impossible, but still impossible in a way.

Author:  devoltz [ November 30th, 2018, 9:16 pm ]
Post subject:  Re: Hash Function

Hinata autism + Null autism = we can decode stringhash.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/