Showing encrypted text in input field just like password field has in normal websites

Showing encrypted text in input field just like password field has in normal websites

  
i want to display a encrypted text in a input field ,

how to achieve that ,

pls help