the lost logbook

Utkarsh's mind.random() on Programming, India and Startups

The Most Obfuscated Java Code I Have Seen!

one comment

Obfuscated code is bad for the eyes, but a good exercise for the brain! I just came across this obfuscated code via notetoself.blogspot.com

1
2
3
4
class Main{public static void main(String...args){\u0066or(int
\u0020$:"vÌÈÊ\"¤¾Àʲ¬Æ\"v¤Î¤\"²¤¨¸¬Æ".to\u0043h\u0061rArray()
)System./*goto/*$/%\u0126//^\u002A\u002Fout.print((char)(($>>
+(~'"'&'#'))+('<'>>('\\'/'.')/\u002Array.const(~1)\*\u002F)));}}

The code translates to:

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

Test the code here: http://ideone.com/UwADS
Interesting huh..!?

Written by Utkarsh

October 17th, 2010 at 7:51 am

Posted in Random,Technology

One Response to 'The Most Obfuscated Java Code I Have Seen!'

Subscribe to comments with RSS

  1. The Most Obfuscated Java Code I Have Seen! http://bit.ly/a2kBa4

    Utkarsh Sengar

    17 Oct 10 at 8:33 am

Leave a Reply

*

Page optimized by WP Minify WordPress Plugin