How to show password field in sign up form.

Hello Everyone, I hope you are all doing well. I worked on some project and I have problem in sign up form. I took custom sign up form and I want some functionalities in that form. I want to show password when I click on show password. And another is to match password field and confirm password field in sign up form. Please help. Thanks in advance.