#Complex encryption algorithm

1 messages · Page 1 of 1 (latest)

shy wyvern
#

There is FirstClass, SecondClass and Interface that both of classes are implementing

This entire code is used for getting one long from 3 others, its some kind of encryption that im trying to understand, this is used few times and actual order of use have meaning, if this is used in order that wasnt predicted (so this method will be used few times and each time it gets 3 different longs) it will give wrong long at the end, this is really complicated, its kind of entire tree, so sometimes 2 sets of values are on same level of running them, so run order for them doesnt exists

we are starting with 3 longs, in this case for example we have (2750462541092930585L, -7709582109325708045L, 39710346885179L), predicted output will be 52644077662854L

now i need to know why this output is actually coming out

and i need to see difference in code work when output is wrong or good

i added zip file bacause there is just too much happening in these files, it makes no sense to upload these on pastebin, im aware that this is complicated thing and requires much time to figure out, i just think that there can be some algorithm specialist that will recognize this method of encryption and can tell me something about that

potent glenBOT
#

<@&987246746478460948> please have a look, thanks.

potent glenBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

grand star
#

I think its just xor

shy wyvern
#

hmm? i mean can u create simple formula how its used in this case? 3 values are passed

#

also crazy thing is this overriden hashCode method and equals

shy wyvern
#

another interesting thing, at the beginning there is 4096 instances of FirstClass

shy wyvern
#

and for some reason its sorting them

#

and its comparing them in strange way