473,387 Members | 1,512 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Having troube understanding obfuscated code

Hello, a friend of mine showed me this code:
http://www2.us.ioccc.org/2004/anonymous.c
Thats an entry for the 2004 International Obfuscated C Code Contest.

This is what the program does, in the author's own words:

"This program takes a single command line argument, transcribes the argument text into Tolkien's Elvish letters, and writes the transcription to standard output as a portable graymap (PGM) file."

I've taken a look at the source code, and there's quite a few concepts unknown to me, being a rather new C programmer. I think even seasoned C programmers would have troube understanding it. But that's not the point. I'm interested in knowing how the hell does he create those glyphs in the output file. I can't even imagine how that happens, but i believe it has something to do with those insane #define statements in the source code, which look like random strings but probably has a meaning behind them.
Apr 5 '08 #1
1 1469
weaknessforcats
9,208 Expert Mod 8TB
As a new programmer I would concentrate on non-obfuscated code. Most of what you see in these obfuscated code examples is what is called a Swiss watch program: Very finely crafted, does its job, parts can't be used in another watch, only a few skilled watchmakers can build one, no one knows how it works and it's expensive.

Should you write code like this on a real job, prepare to exit the premises forthwith.

However, you could get a copy of Obfuscated C and Other Mysteries.

ISBN 0-471-57805-3.

Enjoy this privately.
Apr 5 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: fix | last post by:
Hello, i need to protect my xsl file. In my xsl i have a mechanism for defining a personal stylesheet, what i want to do is, if it possible, find a mechanism for Obfuscated the xsl source code ....
1
by: assaf | last post by:
hi all i am using PreEmptive Solutions dotfuscator (community edition). and i am getting 'TypeLoadException' for a simple interface that i defined. how can i debug an obfuscated application? ...
5
by: Thomas Garai | last post by:
Hi, Does anybody know the details of the obfuscated C contest that was around a couple of years ago? I have a couple of pearlers I would like to enter.... hehehe :) cheers
7
by: tgh003 | last post by:
I would be interested to hear how others are managing their javascript (.js) files from the original code vs the obfuscated version they publish to their site/webapp. I currently manage 2 files,...
4
by: Paul E Collins | last post by:
For those who appreciate such things, here's a bit of obfuscated C# I knocked up in a spare moment at work. http://CL4.org/comp/jabberwocky.txt P. -- www.CL4.org
35
by: +-={K-SoL}=-+ | last post by:
when I try to reference 2 obfuscated libraries at the same time visual studio gives me a compilation error since the obfuscator has converted some name spaces to a and b in both libraries, now I...
4
by: Bry | last post by:
I'm trying Obfuscation for the first time using the community edition of dotfuscator that ships with vs .net 2005. After building my code, I load the compiled .exe into dotfuscator and let it...
23
by: RadiationX | last post by:
This is the problem that I have to solve : Write a program to convert a temperature input in Celsius or Fahrenheit to the other scale. Provide an appropriate prompt, and accept the temperature...
3
by: c.lang.myself | last post by:
I just came across following obfuscated code which prints map of a asian country India...... Can any body help me in understanding what is happening in this program..........
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.