Reverse Engineering Team Board

Reverse Engineering Team Board (http://www.reteam.org/board/index.php)
-   Reverse Code Engineering (http://www.reteam.org/board/forumdisplay.php?f=23)
-   -   XOR Encryption (http://www.reteam.org/board/showthread.php?t=7458)

butaktelco 10-30-2019 12:23 AM

XOR Encryption
 
Hello,
anybody know XOR algorithm, i have discover on the net still don't get any result.

there is code for decrypting.

Quote:

char *result_decode = new char[100];
for(int i = 1; i < 100; ++i){
result_decode[i]= encode_data[i] ^ (0xE3 << (i & 3));
}
any suggestion how to encryption back of byte.

tonyweb 11-02-2019 12:55 PM

Just "swap" 'result_decode' and 'encode_data'.
Xor is a reversible operation.

Regards,
Tony

CodeRipper 11-13-2019 02:24 PM

Xor is his own inverse!!!
 
XOR is commutative, associative, and its own inverse.
More reads:
https://math.stackexchange.com/questions/961441/xor-is-commutative-associative-and-its-own-inverse-are-there-any-other-such-f

https://stackoverflow.com/questions/...unction-to-xor
https://news.ycombinator.com/item?id=11251961


All times are GMT -4. The time now is 02:12 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.