Hacker News new | past | comments | ask | show | jobs | submit login

When I said XOR I meant XOR with a one-byte key on every character of input. e.g.

    char* xor_encrypt(char* input, char key) {
        int i;
        int m = sizeof(input);
        output = (char*)malloc((int) m + 1);
        
        for (i = 0; i < m; i++) {
            output[i] = input[i] ^ key;
        }
        output[m] = 0;
        
        return output;
    }



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: