c3.c (257B)
1 #include <ba.h> 2 #include <analysis.h> 3 4 int main(int argc, char* argv[]) 5 { 6 ba *ct; 7 8 if (argc != 2) 9 return -1; 10 11 ct = ba_from_hex(argv[1]); 12 13 if (!ct) 14 return -1; 15 16 ct = decrypt_scxor(ct); 17 ba_fprint_ascii(ct, stdout, 0); 18 printf("\n"); 19 ba_free(ct); 20 }