简体   繁体   English

给定了ASMX Web服务的隐藏参数

[英]ASMX web service hide parameter given

Hello I have a web service asmx that takes in one parameter here it is below: 您好,我有一个Web服务asmx,它在下面包含一个参数:

public void HelloWorld(string secret)
{
System.Text.UTF8Encoding encoding = new System.Text.UTF8Encoding();
HttpContext.Current.Response.Clear();
HttpContext.Current.Response.BinaryWrite(encoding.GetBytes(secret));
}

My question is...is it possible that the string typed at the time of entering in the string "secret" that the text gets hidden...I know its going to just display it once I hit invoke but I'm just trying to play around and see if its possible to accomplish this. 我的问题是...在输入字符串“ secret”时键入的字符串是否有可能被文本隐藏...我知道一旦点击invoke,它只会显示它,但我只是在尝试玩耍,看看是否有可能做到这一点。

In a windows form there is a Password Char property that will hide the text you enter and just place a "*" for example. 在Windows窗体中,有一个Password Char属性,该属性将隐藏您输入的文本并仅放置一个“ *”。

Thanks, 谢谢,

The best way which I have used it is to secure your string (Password) is to use encryption with SSL. 我使用过的最好方法是保护您的字符串(密码)是使用SSL加密。 Please have look below link for more info. 请在下面的链接中查看更多信息。

https://msdn.microsoft.com/en-us/library/ms996415.aspx https://msdn.microsoft.com/zh-CN/library/ms996415.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM