How can I make a simple Password field

I am developing a registration form in Unity. I created the text fields for Username and Password. But i dont know how to validate the Password field i.e. I dont want to show text, i have to encrypt the text. How to do this??

Any suggestions are welcome.
Thank you.

as for encryption; MD5 is a very common/easy to use method for quick n’ simple password storage.