How to make certain fields encrypted in doctype without using the password datatype

for example I want to encrypt the name fields of a doctype. I am choosing the name field as “Data” is there any way when I save the form this particular field information should be encrypted in db?

1 Like

The only solution I could find was making it a password and then adding a button to show the value. It works however I wish there was a way to prevent the password strength indicator and the message about password requirements.