Skip to content

Instantly share code, notes, and snippets.

@KartikTalwar
Created July 13, 2012 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KartikTalwar/3103185 to your computer and use it in GitHub Desktop.
Save KartikTalwar/3103185 to your computer and use it in GitHub Desktop.
Obfuscated C++ Code
#include <stdio.h>
#include <time.h>
#define O_O const char*
#define __ if
#define ___ while
#define OO void
O_O O[]={"$%&'(#)*+,-./0#1234567#)89:;<=>#","0?@ABC5D#EFBG#",
"HIJBK#HILBM#HINO-PB#HIFBQ#HIRS#HIATU-VB#","WXY=Z.[#\\]^_`#abc'Rd#efg*h^ij#k*+l-mInd#opBqrC5D#"
,"sJBK#sJBK#HIJtIJ#uBK#HIJtIJ#uBK#","WXY=Z.[#\\]^_`#abc'Rd#efg*h^ij#","\n","I;y.;","21","-,.?29;.-",",1","41*;",
"G1+","521)",",8;",".+4;-","?2<","-1","<1","W","_",":+44","=1337,3;2,y-",")8?,"
,"Wy3",",8725729","1:",")1+4<2y,","9;,",",87-",":.13","?2'","1,8;.","9+'","6+-,",
")?22?",",;44","'1+","81)",":;;4729","Y1,,?","3?5;","+2<;.-,?2<","R;*;.","9122?",
"97*;","+0","4;,","<1)2",".+2","?.1+2<","<;-;.,","=.'","-?'","911<>';","?","47;",
"8+.,","I;y*;","521)2",";?=8",":1.","4129","G1+.","8;?.,y-",">;;2","?=8729",">+,","G1+y.;",
",11","-8'","7,","W2-7<;",");",">1,8",")8?,y-","91729","12","I;","9?3;",");y.;","04?'","_2<",
"7:","?-5","3;","Q111111118rrr","2;*;.","Y7*;"};OO _0(float _){clock_t _O=clock()
+_*CLOCKS_PER_SEC;___(clock()<_O);}char _O(char _){__(_=='\n'||_==' ')return
_;return -(_-'#'-'}');}OO __O(O_O _){___(*_){putchar(_O(*_++));fflush(stdout);_0(.06);}}OO
_(O_O _){___(*_){__O((O+6)[*_++-'#']);__(*(_-1)=='#')_0(1);else
__O(" ");}}int main(){_(*O);_(*(O+1));_("#");_(*(O+2));_("#");_(*(O+3));_("#");_(*(O+2));_
("#");_(*(O+2));_("#");_(*(O+4));_("#");_(*(O+5));_(*(O+1));_("#");_(*(O+2));_("#");_(*(O
+2));_("#");_(*(O+2));_("#");}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment