1. An editable iframe in place of the password box.
2. An "invisible" password input box with a dynamic changing element behind it representing the password input.
3. A password box with transparent text and a dynamically changing background representing the password input.
While it is possible I would not recommend that you pursue it, because you will probably only confuse your users in the end.