Monday, June 23, 2008

obfuscated java code sample

This piece of java code compiles and runs. It is the most obfuscated java snippet i've ever seen.




requires java 1.5

5 comments:

  1. class Sig {
    public static void main(String[] args) {
    for(int c : "vÌÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".toCharArray()) {
    System.out.print((char)(c / 2 + 15));
    }
    }
    }

    ReplyDelete
  2. How the hell does that work? that's freaking sweet!

    ReplyDelete
  3. whyy don't you relax and stop posting such codes

    ReplyDelete
  4. class Sig
    {
    public static void main(String[]args)
    {
    for(int a:"vÌÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".toCharArray())
    System.out.print((char)((a >> + (~34&35))+(60 >> (92/46))));
    }
    }

    ReplyDelete