Let's get this blog rolling... Here's a piece of code I just wrote with the goal of obfuscating it wildly:
It prints "Hello, world!".
Basically there are two strings, as the loop iterates they are used to calculate the final letter. I used an ascii table for this. All of these values are <60, so modulo-ing them by 60 does nothing to them. That means, go through string one and find the char with ascii value twice of the current char. If the corresponding entry in string two is true, add one to the result (this is how I fixed it to work with odd numbers as well). The \000 values are octal numbers, which i had to use for the lower numbers like the space and the !.
I don't feel like explaining more now and would much rather drink more beer.
Until next time..
-h3x
Tuesday, December 9, 2008
Hello World
Subscribe to:
Posts (Atom)