You were right. Thank you both. GReaper να'σαι καλα αδερφε.
Type: Posts; User: nohemon
You were right. Thank you both. GReaper να'σαι καλα αδερφε.
My code supposedly encrypts a file (XOR method) and then (when I rerun it with the appropriate argument), decrypts it.
I can successfully encrypt and decrypt .txt files, but when it comes to .exe...
It compiles but it outpus nothing. Maybe it's what you said. But why output doesn't show now but it was visible when I iterated through the initialized char array?
If I write the output to a new...
I did. I tried doing it on buf array. I tried one-by-one (by iterating to it), and as a whole, but I got the same error in both situations.
error: invalid operands to binary ^ (have 'char *' and...
Something like this:
#include
<stdio.h>
int main(int argc, char *argv[])
{
char xorString[] = "This is a test";
int i = 0;
I'm reading a file and I want to apply XOR encryption to it and print it.
This is my code
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>...