{"id":3043,"date":"2009-07-09T05:48:22","date_gmt":"2009-07-09T12:48:22","guid":{"rendered":"http:\/\/css-tricks.com\/?p=3043"},"modified":"2009-07-09T05:48:22","modified_gmt":"2009-07-09T12:48:22","slug":"better-password-inputs-iphone-style","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/better-password-inputs-iphone-style\/","title":{"rendered":"Better Password Inputs, iPhone Style"},"content":{"rendered":"

Recently renowned usability expert Jakob Nielsen wrote an article Stop Password Masking<\/a> in which he claims that hiding users passwords as they input them is bad practice. What he is referring to is the default browser behavior of <input type=password … \/> elements, where text entered into them turns into bullets rather than showing the real characters typed. He says it reduces user confidence in what they type and thus beginning a string of problems like more typing errors, users choosing overly-simple passwords or copying and pasting complex ones (less secure). The effect is ultimately less user satisfaction and ponentially less profit for you. <\/p>\n

Of course he is right about all that, but masking passwords isn’t something that was developed and made default just for shits and giggles. It is to keep prying eyes away from looking at your screen and learning your passwords. This fact isn’t lost on Jakob who suggests making it a checkbox-style option.<\/p>\n

Admittedly, someone peeking at your screen to capture a password is pretty rare. I’m alone in my office right now, like I am most of the time, and I bet that plant in the corner doesn’t have any secret cameras in it. I’m sure a lot of you are in similar environments. But I’m of the opinion that leaving important security up to users is typically not a good choice. Gruber linked to<\/a> Jakob’s article, noting that the iPhone has an interesting solution to this already in use. <\/p>\n

<\/p>\n

How the iPhone handles password inputs<\/h3>\n

\"\"<\/p>\n