Newb question How to mask an SSN field?

Hi How do I mask an SSN field with cake 3.6? Is there something built in to the framework or should I use javascript?

The simple answer is to use the HTML5 attribute type=‘password’