Web pages Remember passwords have security issues-how to handle them

Source: Internet
Author: User

Now general security sites do not remember the password function, because remember the password has a security flaw.

Regardless of the network interception problem, if the login page remember the password, the second login, directly into the developer mode to change the type of text to see the password.

Processing method:

1, the autocomplete= "off" attribute is added.

2, the page uses the HTTPS protocol, because HTTPS is not to save the form information.

3, to a perverted good, that is, you can change the type= "password" to type= "text", because the type is not password will not appear to remember the password function, and then set a variable such as: Var val= "" or set a hidden field <input Type= "hidden" Name= "Val", finally with the onpropertychange to change the password to a line of dots, and assign the value to Val, and then return the value of Val back, due to the same effect as the * number. The user is not visible.

Web pages Remember passwords have security issues-how to handle them

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.