Makes fields legible on focus and obfuscated on blur.
https://aarongustafson.github.io/form-obfuscator/ โ// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 87/100 with only 8 stars
- Accepts sponsorship (github, thanks dev)
// how to help
// readme
Form Field Obfuscation Web Component
<form-obfuscator> masks input values when fields lose focus and reveals them
for editing when they receive focus. It also masks initial values on setup.
This is display masking, not encryption: scripts and form submission can still
access the actual values. Without JavaScript, the native fields stay readable
and editable.
Demos
Installation
npm install @aarongustafson/form-obfuscator
Usage
Wrap a labeled text input in <form-obfuscator> and register the element: