Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys. I want to send passwords from my Visual Studio C# application to a php text file hosted on the internet. Therefore, I am using this code:
public void SendPassword(string password)
       {

           string info = computerName + "-" + userName + " " + password;
           var fullUrl = targetURL + info;
           var conent = new System.Net.WebClient().DownloadString(fullUrl);


Unfortunately, my friends are saying that this is not a safe method because the password is being sent to the server with a GET request unencrypted. Any suggestions on how I can do this safely? Thanks :)

What I have tried:

I have tried googling it, but didn't find what I was looking for.
Posted
Updated 14-Aug-18 4:55am
v2

1 solution

The real problem is that your saving a password IN CLEAR TEXT IN A TEXT FILE! The entire enterprise is unsecured!

Read: Salted Password Hashing - Doing it Right[^]
 
Share this 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