This lib is deprecated. Sorry.
Jakob Nielsen recently asked us to Stop Password Masking:
Usability suffers when users type in passwords and the only feedback they get is a row of bullets. Typically, masking passwords doesn’t even increase security, but it does cost you business due to login failures.
He suggests using plain text input fields by default and offering a checkbox to have the passwords masked.
We do not completely go for the idea of typing passwords in plain text by default as there will be a loss of security! Not a technical one, but a user-driven one.
Password fields on iPhone/iPod touch
Of course Nielsen is right when he talks about users making more errors and feeling less confident when they can’t see what they’re typing while filling in forms. That may have been the reason why Apple
developed implemented an alternative method on iPhone/iPod Touch: passwords get masked while typing but the last character in row is shown in plain text. Compared to common password fields on the web this method improves usability, not only on mobile devices. And concerning security risks you’ll probably need James Bond behind your back looking over your shoulders in order to let your password be captured.
So, this method looks to be a pretty good way of typing in passwords, and that is why tried to use it on web forms. It comes as a jQuery plugin which works unobtrusive. Non-JS users get the common masked password fields.
Copy & paste will work as usual. The only thing that will not work is: deleting/inserting single or multiple characters from the beginning/middle of the masked password string.
But, let’s face it, who will do that?
- Doesn’t need any HTML modification as it finds password fields by type.
- Unobtrusive: Non-JS users get the common masked password fields.
- Supports copy & paste.
- Options: Interval, delay, replacement character, prefix, debug mode.
It’s very simple.
- Just load jQuery, of course ;-).
- Load the Plugin
- and then initialize dPassword.
You are done!
There are some options you might want to configure:
Time in msec the scripts checks for newly entered characters.
Delay in msec of converting the last entered character.
The character to be replaced, for unicode characters use the following format:
You may check these ressources: Overview of unicode characters or a more comprehensive overview.
This is the prefix of the newsly generated elements. Default is
For debugging issues. You need FireBug enabled!
- Adding/deleting chars from the middle doesn’t work. Works at the end of the password only.
- View will not follow cursor if input field is too small.
- If #id based CSS styles are assigned, these styles will not be taken over.
Project page with SVN repository: http://code.google.com/p/dpassword/
JS download: jQuery.dPassword.js
Complete ZIP download: dpassword.zip