LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Encryption (https://www.linuxquestions.org/questions/programming-9/encryption-319024/)

craigs1987 05-01-2005 07:32 AM

Encryption
 
I'm busy studying C and C++ in my spare time and have managed to write a basic XOR encryption program. I was wondering if I could give the output of a single word that has been encrypted and ask someone to crack it and return to me the original input word (along with an explanation of how it was acheived). And before anyone laughs at me for this, I am trying to learn here.
Thanks in advance,
Craig.

Heres the output file that was created by my program, main.out

chrism01 05-01-2005 11:47 PM

iirc , basic XOR means replacing 0 with 1 and vice versa ie 1011 => 0100.
To unencrypt, apply the same rule to the result above...
This is a symmetric encryption/decryption method.
For a good explanation of symmetric and asymmetric encryption, see the manual here: http://www.gnupg.org/
Also has code for you to use.


All times are GMT -5. The time now is 03:05 AM.