473,405 Members | 2,262 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,405 software developers and data experts.

get property after obfuscation

bob
Hi,
I've got some forms with loads of controls for entering numbers. Each
text box should behave in a similare way but i hated writing all the
text processing code for every text box. So I made a function that
took the object whose property was being set, the name of the property
and the textbox that has the text to read

public static void SetIntProperty(object owner, string propertyName,
TextBox textBox)

this saves me lots of repeated code, but after obfuscation it clearly
won't work. Presumable neither will my serialized data files load.

Reflection and serialization seem not so useful if you have to
obfuscate.

Are there any alternatives to obfuscation? Compile to machine code
perhaps?

Any help greatly appriciated,
Bob
Nov 16 '05 #1
3 1640
Obfuscation shouldn't touch public members.. so I can't see how it would be
a problem?

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hi,
I've got some forms with loads of controls for entering numbers. Each
text box should behave in a similare way but i hated writing all the
text processing code for every text box. So I made a function that
took the object whose property was being set, the name of the property
and the textbox that has the text to read

public static void SetIntProperty(object owner, string propertyName,
TextBox textBox)

this saves me lots of repeated code, but after obfuscation it clearly
won't work. Presumable neither will my serialized data files load.

Reflection and serialization seem not so useful if you have to
obfuscate.

Are there any alternatives to obfuscation? Compile to machine code
perhaps?

Any help greatly appriciated,
Bob

Nov 16 '05 #2
Actually I think I missed your point.

So you have a lot of text processing code that you didn't want to write over
and over again... how about:
a) Write a custom control, derived from TextBox, that encapsulates your
processing. Then instantiate that for each textbox to save you from
duplicating your work. Or.
b) Change the Modified property of the textboxes to make them public,
therefore stopping the obfuscator from touching them.

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hi,
I've got some forms with loads of controls for entering numbers. Each
text box should behave in a similare way but i hated writing all the
text processing code for every text box. So I made a function that
took the object whose property was being set, the name of the property
and the textbox that has the text to read

public static void SetIntProperty(object owner, string propertyName,
TextBox textBox)

this saves me lots of repeated code, but after obfuscation it clearly
won't work. Presumable neither will my serialized data files load.

Reflection and serialization seem not so useful if you have to
obfuscate.

Are there any alternatives to obfuscation? Compile to machine code
perhaps?

Any help greatly appriciated,
Bob

Nov 16 '05 #3
bob
Hi Jon,

thanks alot for your help.

The obfuscator i'm using (dotfuscator from the tools menu in visual
studio) is obfuscating everything, regardless of whether private or
public. But I think that's good as I want to keep as much as possible
secret.

I like the idea of subclassing textbox, but I'll still need to pass in
the name of the property it corresponds to, and then obfuscation will
get me again.

Or have I missed something?

Thanks,

Bob

"John Wood" <sp**@isannoying.com> wrote in message news:<sL*********************@news4.srv.hcvlny.cv. net>...
Actually I think I missed your point.

So you have a lot of text processing code that you didn't want to write over
and over again... how about:
a) Write a custom control, derived from TextBox, that encapsulates your
processing. Then instantiate that for each textbox to save you from
duplicating your work. Or.
b) Change the Modified property of the textboxes to make them public,
therefore stopping the obfuscator from touching them.

"bob" <bo**********@hotmail.com> wrote in message
news:b0**************************@posting.google.c om...
Hi,
I've got some forms with loads of controls for entering numbers. Each
text box should behave in a similare way but i hated writing all the
text processing code for every text box. So I made a function that
took the object whose property was being set, the name of the property
and the textbox that has the text to read

public static void SetIntProperty(object owner, string propertyName,
TextBox textBox)

this saves me lots of repeated code, but after obfuscation it clearly
won't work. Presumable neither will my serialized data files load.

Reflection and serialization seem not so useful if you have to
obfuscate.

Are there any alternatives to obfuscation? Compile to machine code
perhaps?

Any help greatly appriciated,
Bob

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jonathan Henderson | last post by:
Obfuscators aren't only used for protecting intellectual property. See the hacker demo at this link: http://www.preemptive.com/documentation/NetHackerDemo.html For those who don't know what...
159
by: petantik | last post by:
Are there any commercial, or otherwise obfuscators for python source code or byte code and what are their relative advantages or disadvantages. I wonder because there are some byte code protection...
13
by: vincent | last post by:
I made the suggestion "Need built in obfuscation support in C# compiler" to Microsoft. Anyone here agree with me? If yes, please cast your vote on this suggestion to raise its priority.
3
by: ..:: Kevin ::.. | last post by:
Is it possible to perform obfuscation on code automatically as part of a build in Visual Studio 2003? For example, instead of building code in release mode, is it possible to create a custom...
10
by: John T. | last post by:
Hi all Figure this scenario: - My Company develops an assembly (a controls DLL) - Since an obfuscation software is too expensive, my Company engages a consultant and delegates him the...
9
by: artistography | last post by:
Hello, I was wondering: If obfuscation isn't all that good, why does Google obfuscate its search results' code? Okay, I realize they're a commercial entity and need to do it. How do they do it?...
32
by: GK | last post by:
Hello, Can anybody suggest a best code obfuscation tool based on their exeperience ? (e.g.: testing effort after obfuscation is 0) thanks, GK
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.