Field or input masking is a technique that helps users format entry text automatically. A mask should only appear once a user focuses on a field, preventing any issues with scanning. This simple technique saves time and effort when filling out phone numbers, credit cards, currency, and more.
Don't Mask Passwords
Don't mask passwords. As per Luke Wroblewski, not masking the password by default cuts down on typographical mistakes.