Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( encryption ) {
- while ( fscanf(input,"%c",(char*)&c) == 1 ) { // Do encryption
- c = c + 200;
- c = c << 2;
- fprintf(output,"%x ", c);
- }
- } else {
- while ( fscanf(input,"%x ",&c) == 1 ) { // Do decryption
- c = c >> 2;
- c = c - 200;
- fprintf(output,"%c", c);
- }
- }
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement