|
-
May 26th, 1999, 09:11 PM
#1
string manipulation
Does anyone understand what this means and can help me with a simple way to undo this in C? Any help would be greatly appreciated:
Take a four byte constant and fold a string into it, byte by byte, by bitwise exclusive or (XOR). Each byte from the string is XORed with a byte in the constant, wrapping as necessary, until all bytes of the string are used up.
I have both the end result of this process as well as the constant, I just need the string. Thanks!
-
May 27th, 1999, 01:32 AM
#2
Re: string manipulation
If i understand the formula is :
for ( i=0; i<l; i++ )
result(i)=string(i) ^ ct(i);
so you have result and ct you want to find back string.
If yes just make the reverse as this :
for ( i=0; i<l; i++ )
string(i)=result(i)^ct(i);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|