Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

My deal is... I want to access a file, an exe for instance, and add some chars on specific places. Saving it will currupt my exe file, it will throw me an error message telling me so...

 

My task now is to remove those specific chars I've placed on that exe file and make it valid again...

 

The proble it's that when I do so, the file remains currupt.

 

Is there a way of working this out?

 

 

 

Thanks in advance...

 

 

 

Alex :D

Software bugs are impossible to detect by anybody except the end user.
Posted

This is a protection method I'm experimenting...

 

Imagine a .mdb file (Access database), intead of encrypting or ziping it with password, I can currupt the file adding some chars "dotted within the file" that together produce an encrypted password.

 

If I remove those chars the DataBase would run just fine... and this method would be applyable to any kind of files :D

 

This is my idea... Is it possible?

 

 

Thanks... Alex :D

Software bugs are impossible to detect by anybody except the end user.
  • Administrators
Posted

If you are over writting existing characters then you would have to replace them with the original ones. If inserting them you will need to make sure the others are moved down again.

Why not just have a look under System.Security.Cryptography - the built in classes offer a choice of known and peer reviewed encryption methods.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Posted

Ok, maybe you're thinking I'm reinventing the wheel here but I don't want to just encrypt my data, I want to be able to currupt my file so they have to be registered so the user can use them...

 

The registration process would fix the exe file or some plug-in Dll so the program would run or would have its full potential...

 

 

 

I'll keep trying...

Software bugs are impossible to detect by anybody except the end user.
Posted

It's donne...

I rewrite the code and it runs all ok now...

 

It calculates a % of the stream chars, with an algorithm defines the position of the spreaded chars to change and with another algorithm it changes each char to the "encrypted one"...

 

This way the file is currupted and the position of the "encrypted" chars isn't constant... dificult to reverse this... :D

 

Now I'm thinking of making about 10 ways of encrypting based on a changed char...

 

 

 

Alex

Software bugs are impossible to detect by anybody except the end user.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...