Jump to content
  • Advertisement

Archived

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

Red Ant

What is XOR masking??

This topic is 6132 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!