This version is old school.
Please find jQuery plugins on npm.
AutoHideInput - is a jQuery and Zepto plugin for hiding and showing secure fields
AutoHideInput is a simple jQuery and Zepto plugin for hiding and showing secure fields. That hides and shows the information entered by user