Archived

This topic is now archived and is closed to further replies.

Red Ant

What is XOR masking??

Recommended Posts

Red Ant    471
Could someone please give me a brief explanation as to how I can use XOR making to encrypt a file. What would I have to do if for example I wanted to encrypt an array like this one: array[0] = 1564 array[1] = 45 array[2] = 876 Thanks in advance!

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Well, this is how i THINK it is:


for(int i=0; i{
output=input[i]^codenumber
}


pretty simple.
Use the same to decrypt.

Share this post


Link to post
Share on other sites