When a user enters a password and gets feedback that is only the time of a planet, it means the loss of availability. Typically, masking passwords will not only increase security, but also increase business costs by causing logon failures. When you think that the password you entered in the browser login window may be wrong, a simple JavaScript trick can help you find out where the password error might appear.
I am (predictably) concerned about how people will treat his ideas. But the crux of the matter is that in many cases, masking passwords is a very important security feature, for example, when I surf the Internet through my laptop at a coffee shop, strangers around me may see my password, or, for example, in an airport waiting area or library, when I surf the internet, There is a possibility that the camera records the information displayed on the screen. Even if you are working in a room, you may enter more passwords a day than other occasions, and masking passwords is also a very important precaution.
But on the other hand, having a time password also needs to be easy to see, when you don't have to worry about someone getting the information on the screen. In this case, choosing to display the password would be a good way to do it.
This section of JavaScript script applies to this type of time:
var els = document.getelementsbytagname (' input ');
for (var x = 0; x < Els.length + +) {
if (els[x].type.tolowercase () = = ' password ') {
var test = Els[x].type = ' text ';
}
}
If you select the contents of the script and delete all line breaks, it becomes a single-line script. This time, you delete the contents of the browser's address bar and paste the contents of the script in, press ENTER. The masked cipher content will be displayed.
If you want to use the script frequently, you can create a bookmark key in the Firefox Bookmarks Toolbar for convenience. The first step is to create a new bookmark that is no different from creating other bookmarks, but you may want to select a page that does not contain an icon. Next:
1. Right-click the newly created bookmark key, and then select Properties. Don't worry, the title bar of the Bookmark Properties dialog box displays the name of the original page bookmark you can edit.
2, change the name of the content for display (or any other content you wish to say).
3, as mentioned above, use the same method to change the local content in the browser's address bar.
4, confirm the keyword and description information, and fill in the relevant parts according to your situation (or you can choose nothing).
5, click the Save Change button.
That's it. Now if you need to display the input password, just open the Bookmarks toolbar and select the bookmark.
If you like, in Firefox, you can just drag and drop the link onto the Bookmarks toolbar to get the same effect.
Unfortunately, if you're using a different type of browser, you'll need to figure out how to use the script yourself.
Finally, if you're a web developer and you think it's a good idea to let a site visitor see the password they entered at the time of the login, you can use the JavaScript script to create a connection that displays the password at any moment. However, I suggest that it is advisable to conduct a thorough and comprehensive analysis before doing so.
In this article, I let people know that there is a risk of masking password fields for security, and that users should make informed choices based on their own circumstances. Many users who visit your site over the Internet may not be aware of the risk of a password being displayed, but instilling a large amount of information about the risk so that they can make an informed choice is no better than using a simple mouse click to display the password. No matter what you do, just do not force the user to be at risk of displaying the password.
As a last warning, remember not to leave the computer when the password is displayed on the screen, or anyone can use such JavaScript script to get your password. For the vast majority of software-level security technology, no matter how good the effect in the network world, can not prevent the physical connection through the machine.