Password Field/Mask

Password Field/Mask

Is there a way to create a password field or mask a field with certain characters.

i.e. As I type 123456 it shows up as ******


Thanks.