I have a simple function which looks like that:
keyAlphabet = [-1, 16, 32, 127, 61, -32, -31, 43, 0, 88, 2, 5, 7, 112, 64, 69, 96]
key = ??? # only keyAlphabet values
p = 0x1337
for i in key:
...p*=i
...p+=0x31337
Finally p
should be 0xfd0970e7
.
I've tried to subtract 0x31337
from the final result and search dividers of that value from the keyAlphabet
(I've done that operation 8 times and after that multiple dividers came out, 0x12ef1e
can be divided with 2,7
and 61
), but because of negative values (specially -1
) I'm not sure where should I change the sign. As a result I'm not able to find the key which will proceed values from 0x1337
into 0xfd0970e7
.
key
. it iterates all possible values. i think that ifkeyAlphabet
is actuallyvar_18
, you should have something likekeyAlphabet.reverse() ; for key in keyAlphabet: