0
votes

Is there a way to encrypt just the email field in Salesforce? Any ideas would be great. Using SFDC build in functionality or APEX, triggers or web services.

Thanks.

1
Apex now has encryption functions built-in that work pretty well, but can you clarify what you are trying to do? True encryption, or do you just want to obscure the visible address while on screen? Who needs to access the unencrypted data, and what steps do you expect they need to take to access it?jkraybill
Thanks for the reply. So we want the email address to be encrypted at rest. So while the email address is not being viewed, it should be encrypted. Whenever a rep needs to look at the address, i.e. Case record, Contact record or sending emails the address should be decrypted. The other use case is when a customer sends us an email, we need to encrypt that address before storing it within the Case record (at rest on the Case table). Does that clarify what I'm after? Thanks again.Havoc783

1 Answers

2
votes

Salesforce does support an "Text (Encrypted)" custom data type. You will have to contact Salesforce to get this enabled for your organization. A couple of things to note with encrypted fields:

  • Encrypted fields are encrypted with 128-bit master keys and use the AES (Advanced Encryption Standard) algorithm.
  • You can only store text, and a max length of 175 characters
  • Encrypted data will be shown masked for all users except those with 'View Encrypted Data' permission

The Salesforce documentation

A cookbook that walks you through storing a SSN