In a UI of mine, I have a PasswordField like so (urm the one at the bottom!):
You could use a custom Tooltip to show the password, and use the Checkbox to show / hide the Tooltip.
Tooltip
Checkbox
The code for this demo can be found here.