There is no built in support for this, but you may be able to modify your theme to allow for this functionality using javascript.
Here is a relatively simple example online - https://www.w3schools.com/howto/howto_js_toggle_password.asp - that should be helpful.