I read the tutorial on this site about xor encryption, and I understand it, but I am having trouble encrypting a file, instead of a string. The tutorial is http://www.cprogramming.com/tutorial/xor.html
I read the tutorial on this site about xor encryption, and I understand it, but I am having trouble encrypting a file, instead of a string. The tutorial is http://www.cprogramming.com/tutorial/xor.html
But where is your code that you have so far?
Read file into a string, then encrypt that string perhaps?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.