Hello,
How can i hide some data after i build a project?
For example i build my project, but if i open it (the .exe file) with an hex editor i can see some informations.. and i don't want other to see it.
How can i hide or crypt or anything else?
ty
Loading

Roy S194 reputationPosted Dec 21, 2011, 9:59 AM EST
I've heard about obfuscators that can change the code a bit to make it less readable for those decompilers.
But it probably won't do any good against hex editors... If you have a string that you want to hide, you could write some code that takes a constant array of data and forms it into the string you need.
What kind of information do you want to hide?
andrei hooba67 reputationPosted Dec 21, 2011, 10:33 AM EST
Roy S194 reputationPosted Dec 21, 2011, 10:58 AM EST
if (user2 == Encoding.ASCII.GetString(new byte[] { 53, 56, 49, 53, 54, 52, 51, 50, 55, 50, 54, 52, 52 }))
{
Console.Write("Checking license .... OK");
}
I've just converted the constant "5815643272644" into bytes and used Encoding.ASCII.GetString to convert it to a string.
Sam HobbsRank #107 · 20.5K reputationPosted Dec 21, 2011, 6:23 PM EST
andrei hooba67 reputationPosted Dec 22, 2011, 7:38 AM EST
Kirtan PatelRank #292 · 8.6K reputationPosted Dec 22, 2011, 9:17 AM EST