AlexCode Posted November 17, 2003 Posted November 17, 2003 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 Quote Software bugs are impossible to detect by anybody except the end user.
Administrators PlausiblyDamp Posted November 17, 2003 Administrators Posted November 17, 2003 How are you storing the extra characters - on the end or dotted throughout the exe (why do you want to corrupt an exe by the way?) Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
AlexCode Posted November 17, 2003 Author Posted November 17, 2003 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 Quote Software bugs are impossible to detect by anybody except the end user.
Administrators PlausiblyDamp Posted November 17, 2003 Administrators Posted November 17, 2003 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
AlexCode Posted November 17, 2003 Author Posted November 17, 2003 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... Quote Software bugs are impossible to detect by anybody except the end user.
Administrators PlausiblyDamp Posted November 17, 2003 Administrators Posted November 17, 2003 What code are you using to corrupt / un-corrupt (is that even a word I wonder) the file? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
AlexCode Posted November 17, 2003 Author Posted November 17, 2003 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 Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.