dick_nl Posted March 2, 2004 Posted March 2, 2004 Using a decompiler I figured out that they don't display the values of an array like "int[] myInts = {1,2,3,4};" Are they just difficult to reverse engineer (and for that reason a good base for protection)? Quote
Moderators Robby Posted March 2, 2004 Moderators Posted March 2, 2004 I don't understand your question. Quote Visit...Bassic Software
dick_nl Posted March 2, 2004 Author Posted March 2, 2004 (edited) What I mean is the following: The next code (C#): public void func() { int[] arrayOfInt = {1,2,3,4, 10}; int sample = arrayOfInt[3] * arrayOfInt[4] ; // sample should be 40 now } is in the decompiler visible as: public void func() { int[] arrayOfInt; int sample = arrayOfInt[3] * arrayOfInt[4] ; } So the values that are, in the code, stored in the array aren't made readable in the decompiler... Is that always the case!? Edited March 2, 2004 by dick_nl Quote
*Gurus* divil Posted March 3, 2004 *Gurus* Posted March 3, 2004 It just means the decompiler you used doesn't know how to reconstruct the array initialization. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
dick_nl Posted March 3, 2004 Author Posted March 3, 2004 But so far I didn't find a decompiler that could... does anybody know a decompiler that could? Quote
*Gurus* divil Posted March 3, 2004 *Gurus* Posted March 3, 2004 I'm no expert on what the different decompilers can or cannot do, but the initialization will certainly be visible in a disassembly so don't get the idea that your code is protected in some way. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
dick_nl Posted March 3, 2004 Author Posted March 3, 2004 It would already had suprised me! Although in the disassembler from M$ I couldn't see it too... but probably there's a way to figure it out... Quote
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.