Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. if ( encryption ) {
  2. while ( fscanf(input,"%c",(char*)&c) == 1 ) { // Do encryption
  3. c = c + 200;
  4. c = c << 2;
  5. fprintf(output,"%x ", c);
  6. }
  7. } else {
  8. while ( fscanf(input,"%x ",&c) == 1 ) { // Do decryption
  9. c = c >> 2;
  10. c = c - 200;
  11. fprintf(output,"%c", c);
  12. }
  13. }
  14.  
  15. return EXIT_SUCCESS;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement