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