在没有'GET'请求的情况下,在互联网上向PHP文本文件发送密码 [英] Send password to PHP text file on internet without 'GET' request

查看:62
本文介绍了在没有'GET'请求的情况下,在互联网上向PHP文本文件发送密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我想将密码从我的Visual Studio C#应用程序发送到托管在互联网上的php文本文件。因此,我使用此代码:

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);





不幸的是,我的朋友们说这不是一种安全的方法,因为密码正在发送到服务器未加密的GET请求。有关如何安全地做到这一点的任何建议?谢谢:)



我尝试了什么:



我试过谷歌搜索它,但没有找到我要找的东西。



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.

推荐答案

真正的问题是你在一个文本文件中清除文本中的密码!整个企业都是无担保的!



阅读: Salted Password Hashing - 正确行事 [ ^ ]
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[^]


这篇关于在没有'GET'请求的情况下,在互联网上向PHP文本文件发送密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆