r/obfuscatedcode • u/Elite6809 • Apr 19 '13
(C) My first piece of obfuscated code
#include <stdio.h>
void main(void){int _,q=-('?'&1),u,z=-q
<<5,vb='%'&(z>>2),s=z&2,i=1+q;char*__=(
(u= q),"int32** icnf[n]:ic()INT:==()IN"
"T sub//_{ *strDVD i++,k++ --d;___:#ke"
"zz=D MadCatz AARDM4N:*#2468#");char _x
[z >> 1];_+=q;while(i<z>>1){_x[i++]=0;}
while(q++,u++,__[q]!=0){if(z==__[q]||__
[q]==2*0x1d)u=vb-1,s++;_x[s]+=((__[q]&1
)<<(6-u));}puts(_x);/*6809/19.Apr.13*/}Can you guess what it does? Kudos to anyone who can figure out the decryption method, it shouldn't be too hard.
6
Upvotes
View all comments
Show parent comment
4
u/Elite6809 Apr 19 '13
B-b-b-BINGO :)
Yep, that's precisely it. I thought of having each character across 4 with the 2 least significant bits, but then I'd be limited to the characters I could use and still make the text look fairly off-putting. But well done, upvote for you! :D