strSecretKey is not hardcoded; it's a variable. You can put data into it with:
Console.Write("Enter the secret key: "); string strSecretKey = Console.ReadLine(); There is nothing hardcoded about it. I did screw up in my previous post by putting it in quotes but that was not my intention. Brad you're right. This would only help if the user had to input a key at certain points in the program (like at startup). This would only help in cases where there is manual intervention required by the user. Dan you are right too. All that needs to be hijacked is the return value (but at least the original key is still unknown). -Pete -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Brad Wilson Sent: Monday, May 13, 2002 12:48 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] Hide part of code from Developers Peter Vertes wrote: > The original key doesn't get transmitted via the network nor does it get > hard coded. Two comments. First, "strSecretKey" is your key. How do you not call that hard-coded? Second, did you read the original post? Someone is trying to find a way to hide the key they need to connect to the MapPoint.net service. Your described service doesn't really help them solve that problem. Brad -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.