Jump to content
Tuts 4 You

Protected char


Recommended Posts

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
Link to comment

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.

Link to comment

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...