How to restrict the user to use ildasm tool on my assembly

P

Prasad

Hi:

I have a component, which encrypts and decrypts the data. There are public
key and private keys in code. If user uses "ildasm" tool to view the
contents of the component. The public and private keys are visible. How
can i restrict the user to use ildasm tool on my assembly. My aim is, user
shouldn't see the private key. I did obfuscating, all the method names,
variables names (and so on..) changed, but the hard coded values (private
key)
is not encrypted (obfuscated). I think with obfucation, hard coded values
won't be
obfuscated. Any other idea?.

Thanks in advance.

- Prasad.
 
K

Kelly Leahy

How about using something tricky like a filedate as a key to encrypt the
encryption keys? Then you can change the date on the file to match whatever
the filedate you used was and run make the decrypt read the keys using that
date at runtime?

It's not the most secure, but it makes somebody work a bit harder, at least.
For instance, you could put this value in a global variable somewhere to
make it harder to figure out where it came from, maybe even do some zero sum
arithmetic on it to throw them off the scent a bit. Anyway you look at it,
somebody's going to be able to figure it out (just as they would be able to
if it were a "real" EXE with x86 instructions), all you can do is make it
harder.

Kelly
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top