Created
November 4, 2013 18:06
-
-
Save oppai/7306774 to your computer and use it in GitHub Desktop.
Cool Crypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
char input[256]; | |
char output[256]; | |
int i=0; | |
puts("Input raw text"); | |
scanf("%256s",input); | |
puts("Input crypto text"); | |
scanf("%256s",output); | |
puts("Output key text"); | |
for(i=0;input[i]!='\0' || output[i]!='\0';i++){ | |
int c = input[i] ^ output[i]; | |
putchar(c); | |
} | |
putchar('\n'); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment