Advertisement
Guest User

Untitled

a guest
Jan 13th, 2012
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int main() {
  4.     char s[1005];
  5.     int j;
  6.     int i;
  7.     char c[100];
  8.     char t;
  9.     FILE* f = fopen("Code.hs.enc", "r");
  10.     fread(s, 1004, 1, f);
  11.  
  12.     for(i = 0; i < 1000; i++) {
  13.         c[0] = s[i]^' ';
  14.         c[1] = s[i+1]^':';
  15.         c[2] = s[i+2]^':';
  16.         c[3] = s[i+3]^' ';
  17.         if('A' <= c[0]  && c[0] <= 'Z' &&  
  18.             'A' <= c[1] && c[1] <= 'Z' &&
  19.             'A' <= c[2] && c[2] <= 'Z' &&
  20.             'A' <= c[3] && c[3] <= 'Z') {
  21.                 printf("-----\n");
  22.                 printf("%d [%c%c%c%c%c]\n", i, c[0], c[1], c[2], c[3]);        
  23.                 printf("[%c%c%c%c%c%c%c%c]\n", s[i]^c[0], s[i + 1]^c[1], s[i + 2]^c[2], s[i + 3]^c[3]);
  24.                 printf("----------------\n");
  25.         }        
  26.     }  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement