Jump to content
Tuts 4 You

Protected char


wyrda

Recommended Posts

Posted (edited)

I work in c++ at a project and I can say that if someone change a char array with a debugger my app is hacked.

How should I protect that array?

I was thinking to have more arrays and if I join them(when I need) to result my array.

Edited by wyrda
Posted

checksumming? encrypting the array, so the text isn't so obvious.. the list is pretty limitless

and all comes down to how imaginative you are

Posted

Let say that I make a MD5 hash(or what ever it is) and every time I use my array I check it, but the cracker couldn't modify also that 'password'?

Posted

Sure you can patch the check against the md5. The pretty safe way is to decrypt something with the checksum of that array so only the right checksum makes the app usable. Not sure how feasible this is for you and how far you want to go 'protecting' your array.

Then again, it's possible to predecrypt the data with the original checksum, patch the array, and remove the code for decrypting. It all depends on the implementation really.

Posted

Can you give me a little example because it's the firs time I try to protect my apps.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...