Pular para o conteúdo

What Encryption at Rest Protects, and What It Doesn't

Este conteúdo não está disponível em sua língua ainda.

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.

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?

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).

What encryption at rest stops What encryption at rest stops, and what it doesn't. It stops someone who gets the stored data: the drives, a backup file, data taken outside the platform; to them it's useless. It doesn't stop a logged-in user with access: Salesforce decrypts the field for them, on screen, in reports and exports, and for any integration or agent that runs as a user with access. In transit is a different job: TLS protects data on the wire, and encryption at rest doesn't. Footnote, in Salesforce's words: encryption at rest is about logins, not permissions. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.59.0", "built": "2026-11-20", "id": "DGM-SVA-SD-01", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "comparison 0.5.0", "theme": "stevetecharc 1.4.0"} It stops someone who gets the stored data The drives in a data center A backup file Data taken outside the platform: useless to them It doesn't stop a logged-in user with access Salesforce decrypts it for them On screen, in reports and exports For an integration or agent running as that user A different job data in transit TLS protects data on the wire Encryption at rest doesn't In Salesforce's words: encryption at rest is about logins, not permissions. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

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.

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:

  1. 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.
  2. 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).
  3. The requirement. Which of those fields a regulation, contract or policy says must be encrypted at rest.
  4. Then the tool. Only now: which kind of encryption, and which keys.

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 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.