What Encryption at Rest Protects, and What It Doesn't
Цей контент ще не доступний вашою мовою.
Module 1 of 7 in the chapter Encryption: Classic, Shield and Apex Crypto, chapter 18 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.
The question this module answers: Someone says “this field is sensitive, encrypt it.” What would encryption actually stop, and what wouldn’t it?
Everything in this course so far has been about who can see what: the defaults, the hierarchy, the rules, the permissions, the code. Encryption sounds like more of the same, a stronger lock on the same door. It isn’t. It’s a lock on a different door, and the first job is knowing which one.
Where is the data encrypted?
Section titled “Where is the data encrypted?”That’s the question I ask the room. When Salesforce encrypts a field, where is it encrypted? The answer is at rest: stored, on the disks, and anywhere it sits in its life after that, including the backups.
So the next question is the one that matters: what would someone have to do to get at data at rest? They’d have to break into the data center and walk out with the drives, or get hold of a backup file. Encryption at rest means that what they walk out with is useless to them.
Salesforce says the same in its own words: with Shield Platform Encryption “You can encrypt sensitive data at rest, not just when transmitted over a network,” and “Data is encrypted so it’s protected even when other lines of defense are compromised” (Strengthen Your Data’s Security with Shield Platform Encryption (opens in a new tab), Salesforce Help, checked 2026-11-26).
Notice the phrase “not just when transmitted over a network.” Data moving between a browser or another system and Salesforce is protected on the wire by TLS, which is a separate job with separate settings (The TLS Handshake). Encryption at rest doesn’t do that job, and TLS doesn’t do this one. When someone says “is it encrypted?”, ask: at rest, or in transit?
Logins, not permissions
Section titled “Logins, not permissions”Here’s the part that surprises people. When a user who is allowed to see the field opens the record, Salesforce decrypts it for them. Automatically. They see the value, in plain text, exactly as they would if it had never been encrypted.
Salesforce is blunt about it: encryption keeps outsiders who get hold of the data from using it, and “It’s not a way to hide data from authenticated users. User permissions are the only way to control data visibility for authenticated users.” Encryption at rest is about logins, not permissions. And: “if a user has authorization to see a given set of data, that user sees that data whether it’s encrypted or not” (Why Isn’t My Encrypted Data Masked? (opens in a new tab), Salesforce Help, checked 2026-11-26).
So encryption doesn’t protect you from someone with a login and access. It’s not protection against a person inside the org doing something they shouldn’t. That’s still the sharing model, field-level security and object permissions: everything Parts 1 and 2 of this course built. If a user shouldn’t see a field, encrypting it changes nothing for them. Take the access away.
The same page draws one more line worth keeping: “Data can be masked but not encrypted, or encrypted but not masked.” Masking hides digits on the screen from people who are logged in but shouldn’t see them; encryption deters someone who steals the stored data. “In this way, masking and encryption are different solutions for different problems” (same page). The Data Architect course takes the screen side further (Encryption Doesn’t Fix the Screen).
Why turn on something that costs you?
Section titled “Why turn on something that costs you?”Then I ask the room the harder question. Encryption isn’t free. Not everything works with an encrypted field, and there’s a performance cost. So why aren’t we doing it for everybody? And if we’re not doing it for everybody, what’s special about the ones we do it for?
The answer, almost every time, is that someone requires it: a regulation, a contract, a customer’s security addendum. Salesforce frames Shield the same way, so “your company can confidently comply with privacy policies, regulatory requirements, and contractual obligations for handling private data” (Strengthen Your Data’s Security with Shield Platform Encryption). That’s why my rule of thumb is simple: as soon as you hear financial services or healthcare, ask the question. Are we encrypting? And then ask the next one: what exactly does the requirement say? Module 6 goes through PCI, PII and HIPAA.
Otherwise, leave it off. Encryption you don’t need still costs you everything it costs.
Start with the threat, then the list
Section titled “Start with the threat, then the list”Salesforce’s own best practices start in the same place. “Define a threat model for your organization… Use your findings to create a data classification scheme, which can help you decide what data to encrypt.” And then: “Encrypt only where necessary. Not all data is sensitive. Focus on information that requires encryption to meet your regulatory, security, compliance, and privacy requirements. Unnecessarily encrypting data impacts functionality and performance” (Shield Platform Encryption Best Practices (opens in a new tab), Salesforce Help, checked 2026-11-26).
That’s the order I’d hold a project to:
- The threat. What are we protecting, and from whom? If the answer is “from users who shouldn’t see it,” that’s access, not encryption.
- The classification. Which fields are sensitive, recorded on the field itself (chapter 4, module 6), with the protection each level gets decided in a matrix (Classify, Then Protect).
- The requirement. Which of those fields a regulation, contract or policy says must be encrypted at rest.
- Then the tool. Only now: which kind of encryption, and which keys.
Three ways to encrypt in Salesforce
Section titled “Three ways to encrypt in Salesforce”The rest of this chapter takes the tools one at a time:
- Classic Encryption (module 2): a special encrypted custom field type, included with every license. Salesforce’s first generation.
- Shield Platform Encryption (module 3): field-level encryption or encryption of the whole database, covering far more data, with control over the keys (module 4). An additional fee applies. Turning it on is a project of its own (module 5).
- Your own encryption with the Apex Crypto class (module 7): for data that has to stay encrypted beyond Salesforce, end to end.
And module 6 puts them next to everything else a regulation can ask for.
Test knowledge. Know that Salesforce encryption at rest protects stored data (disks, backups) from people who get at it outside the platform, and that data in transit is protected by TLS, a separate control. Know that encryption isn’t a way to hide data from authenticated users: a user with access sees the decrypted value, and only permissions and sharing control what authenticated users see (“encryption at rest is about logins, not permissions”). Know that masking and encryption solve different problems, and Salesforce’s best practices: define a threat model, classify data, and encrypt only where necessary, because unnecessary encryption affects functionality and performance. A likely area, not a known question.
What an architect decides here
Section titled “What an architect decides here”- What the threat is for each kind of sensitive data, and whether the answer is access control, encryption, masking or not storing it.
- Which fields a regulation, contract or policy requires to be encrypted at rest, and which document says so.
- That nobody on the project treats encryption as a substitute for sharing, field-level security or object permissions.
- That in-transit protection (TLS) and at-rest protection are both answered, separately.
- That everything else stays unencrypted, on purpose, because encryption has a cost.
Beyond the exam: what AI changes. An agent runs as a user, and Salesforce decrypts data for any user with access. So encryption at rest does nothing to limit what an agent can read, repeat or summarize. The agent’s user’s permissions and sharing do. When someone says “it’s fine, that field is encrypted,” ask what the agent’s user can see. Chapter 20 covers agents.
Explore
Section titled “Explore”- Strengthen Your Data’s Security with Shield Platform Encryption (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Why Isn’t My Encrypted Data Masked? (opens in a new tab), Salesforce Help (checked 2026-11-26)
- Shield Platform Encryption Best Practices (opens in a new tab), Salesforce Help (checked 2026-11-26)
