Click here to Skip to main content
14,775,130 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello.
i want to hide my http request from http debugger apps
this is code im using to get request from server
WebRequest request = WebRequest.Create("http://myeebsite/validator/" + loginKey);
request.Proxy = null;
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
String responseString = new StreamReader(response.GetResponseStream()).ReadToEnd().Trim();

if (!String.IsNullOrEmpty(responseString) && String.Equals(responseString, "SUCCESS"))
    {
         MessageBox.Show("Login Successful.");
    }
    else
    {
         MessageBox.Show("Invalid private login key");
    }

all http debugger apps can read my request also they can make response from debugger so i hope i found help here
thx in advance

What I have tried:

i try proxy null and nothing also defult web proxy but still can read it
request.Proxy = null;
Posted
Updated 2-Feb-20 12:24pm
v3

Here is a good CodeProject article which also discusses the performance of encryption routines: Swanky Encryption/Decryption in C#[^]

If you don't use .NET Core, you might also be interested in the SecureString Class (System.Security) | Microsoft Docs[^]
   
v2
Why are you doing all this and not just using HTTPS?
   
Comments
Richard Deeming 3-Feb-20 11:21am
   
Damnit Chris, why can't I upvote this answer more than once? :)

This is the only correct answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900