Reverse Engineering RET Homepage RET Members Reverse Engineering Projects Reverse Engineering Papers Reversing Challenges Reverser Tools RET Re-Search Engine Reverse Engineering Forum Reverse Engineering Links

Go Back   Reverse Engineering Team Board > Reverse Engineering Board > Reverse Code Engineering
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 10-30-2019, 12:23 AM
butaktelco butaktelco is offline
Senior Member
 
Join Date: Feb 2008
Posts: 71
Default 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.
Reply With Quote
  #2  
Old 11-02-2019, 12:55 PM
tonyweb tonyweb is offline
Member
 
Join Date: May 2011
Posts: 8
Default

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

Regards,
Tony
Reply With Quote
  #3  
Old 11-13-2019, 02:24 PM
CodeRipper CodeRipper is offline
Member
 
Join Date: Mar 2009
Location: Romania
Posts: 20
Default 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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump





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