When I look at gmail on my mobile web browser the password textbox hashes the characters as I type so I can see the actual input as I type before is hashed with an asterisk.
当我在移动网络浏览器上查看gmail时,密码文本框会在我输入时对字符进行哈希处理,这样我就可以看到实际输入,因为我输入之前用星号进行哈希处理。
So as I enter it becomes, P --> *a --> **s etc..
所以当我输入它时,P - > * a - > ** s等。
How is this done? I presume its javascript? If somone can point me in the right direction that would be great.
这是怎么做到的?我推测它的javascript?如果somone可以指出我正确的方向,这将是伟大的。
2 个解决方案
#1
1
This is not asp.net nor a function of gmail.
这不是asp.net也不是gmail的功能。
this is a behavior enabled by your phone's OS.
这是手机操作系统启用的行为。
#2
0
Rather than use an asp.net control, you can do something like this (DISCLAIMER: I don't know how secure this is--I have doubts about handling passwords in unprotected strings; see below...):
而不是使用asp.net控件,你可以做这样的事情(免责声明:我不知道这有多安全 - 我对在未受保护的字符串中处理密码有疑问;见下文......):
Include this markup in the html section:
在html部分中包含此标记:
<input type="password" id="myPass" name="myPass"/>
And do this in the code behind:
并在后面的代码中执行此操作:
string password = Request.Form["myPass"]; // now an insecure password string.
However, you might want to use a safer string class (eg SecureString) to handle passwords--though I am not sure how useful that would be once it's already been stored in the clear in the Request.Form object.
但是,您可能希望使用更安全的字符串类(例如SecureString)来处理密码 - 尽管我不确定一旦它已经存储在Request.Form对象中的clear中,它将是多么有用。
#1
1
This is not asp.net nor a function of gmail.
这不是asp.net也不是gmail的功能。
this is a behavior enabled by your phone's OS.
这是手机操作系统启用的行为。
#2
0
Rather than use an asp.net control, you can do something like this (DISCLAIMER: I don't know how secure this is--I have doubts about handling passwords in unprotected strings; see below...):
而不是使用asp.net控件,你可以做这样的事情(免责声明:我不知道这有多安全 - 我对在未受保护的字符串中处理密码有疑问;见下文......):
Include this markup in the html section:
在html部分中包含此标记:
<input type="password" id="myPass" name="myPass"/>
And do this in the code behind:
并在后面的代码中执行此操作:
string password = Request.Form["myPass"]; // now an insecure password string.
However, you might want to use a safer string class (eg SecureString) to handle passwords--though I am not sure how useful that would be once it's already been stored in the clear in the Request.Form object.
但是,您可能希望使用更安全的字符串类(例如SecureString)来处理密码 - 尽管我不确定一旦它已经存储在Request.Form对象中的clear中,它将是多么有用。