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
certi_vimalcerti_vimal 

How are Encrypted Fields stored in the database?


Hi,

 

I understand that depending on "View Encrypted Data" Profile permission, users can view masked/unmasked Encrypted field data.

 

However, what is stored in the database? Is it encrypted version/decrypted version of data? What result will come once you query for the field?

 

Please advise.

 


Thanks,

 

Vimal

BrendanOCBrendanOC

Encrypted fields are stored using AES 123 encryption in the database.

 

https://<your instance>.salesforce.com/help/doc/user_ed.jsp?section=help&target=fields_about_encrypted_fields.htm&loc=help&hash=topic-title