I haven't had to do this but this is why I would try to do.
Have two fields for the password,
one hidden
and the other where the asterisks will display (type="text")
Use javascript to replace the values in the type="text" field with asterisk and synchronize this field with the hidden field.