Skip to content

Instantly share code, notes, and snippets.

@oppai
Created November 4, 2013 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oppai/7306774 to your computer and use it in GitHub Desktop.
Save oppai/7306774 to your computer and use it in GitHub Desktop.
Cool Crypt
#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