function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
WEN JIEWEN JIE 

Question about Encrypted Field

Hi,

 

Does anyone know how to create a custom encrypted filed(like password)? And how does Salesforce store it and  retrieve back the details?

 

Thank you!

Best Answer chosen by Admin (Salesforce Developers) 
JitendraJitendra

Hi,

you can select field type "Text (Encrypted)".

 

In apex class, you can access it like normal text field. On UI, the field will be visible to only those profile which have View Encrypted data permission.

 

You cannot make a search on Encrypted fields.

 

please have a look on below URL for more info:

https://help.salesforce.com/HTViewHelpDoc?id=custom_field_types.htm&language=en_US

All Answers

JitendraJitendra

Hi,

you can select field type "Text (Encrypted)".

 

In apex class, you can access it like normal text field. On UI, the field will be visible to only those profile which have View Encrypted data permission.

 

You cannot make a search on Encrypted fields.

 

please have a look on below URL for more info:

https://help.salesforce.com/HTViewHelpDoc?id=custom_field_types.htm&language=en_US

This was selected as the best answer
HariDineshHariDinesh

Hi,

 

You can create by clicking NEW in Custom Fields & Relationships section

Select Text (Encrypted). It will create Encrypted Field for you.

You can set View Encrypted Data permission at profile level to make data visible for only those profile users

 

For More information about Encrypted Fields:

http://ap1.salesforce.com/help/doc/en/fields_about_encrypted_fields.htm

WEN JIEWEN JIE

Hi Jitendra,

 

Thanks for your help!

WEN JIEWEN JIE

Hi HariDinesh,

 

Thanks for your answer!