Recently I found a XOR encryption program. Upon deciding that XOR sucks, I decided to adapt it to the almighty ROT13!Well, I'm pretty sure my program complies to the ROT13 rule and I was wondering if any of you dudes would check it out for me and see if it is.
Here's the source code and attached is a zip file with the source code and the actual program itself (compiled)
Thanks!Code:/* ROT13 by Jethro 1337 3ncrypt10n! :) [email protected] */ #include <stdlib.h> #include <stdio.h> int main(int argc, char *argv[]) { int count; FILE *in,*out; if(argc < 3) { printf("ROT13 by Jethro\n"); printf("Usage: rot13 <source file> <destination file>"); return 0; } in = fopen(argv[1], "rb"); out = fopen(argv[2], "wb"); while(( count = getc(in)) != EOF) { count = count ^ 13; putc(count, out); } return 0; }




Well, I'm pretty sure my program complies to the ROT13 rule and I was wondering if any of you dudes would check it out for me and see if it is.
Reply With Quote