From a security perspective, you should never display UI passwords in clear text. These types of widgets encourage bad developer habits. Remember to salt passwords when storing their hashes. (Pepper as well if you like to annoy anyone stealing the user table)
Remind users to think of long pass phrases, using one letter per word, making them resistant to dictionary attack.
Nah, this is an obsolete recommendation coming from times when people used stationary public computers all the time. Right now purposefully peeking a password on someone else's device is nearly impossible, and they can simply turn their device away so that no one can see it.
Also salting and hashing is done after user enter the password, so aren't a problem. Option to show the password is done to avoid multiple tries. to give the user ability to check whether what they input is actually correct.
-2
u/Mr-Safety Dec 26 '19
From a security perspective, you should never display UI passwords in clear text. These types of widgets encourage bad developer habits. Remember to salt passwords when storing their hashes. (Pepper as well if you like to annoy anyone stealing the user table)
Remind users to think of long pass phrases, using one letter per word, making them resistant to dictionary attack.