Resources /
Blog

Salesforce Shield Platform Encryption: Admin Guide

Submit your details to get a book

10
Min Read
Resources /
Blog

Salesforce Shield Platform Encryption: Admin Guide

Download

Submit your details to get a book

10
Min Read

Salesforce Shield Platform Encryption encrypts your Salesforce data at rest using AES 256-bit encryption with keys you control. It is part of Salesforce Shield, a paid add-on suite that also includes Event Monitoring, Field Audit Trail, and Data Detect.

Organizations enable it to satisfy regulatory obligations that standard platform security does not cover on its own, particularly where auditors require customer-managed encryption keys.

The part most guides understate is the trade-off. Shield now offers two encryption approaches, and they behave very differently. Database Encryption protects most data transparently. Field-level encryption protects specific fields more deeply, and in doing so restricts filtering, sorting, and SOQL operations that your teams already rely on.

The stakes run both ways. IBM put the average global cost of a data breach at $4.88 million in its 2024 report, and encryption at rest is one of the most direct ways to reduce that exposure. A poorly planned rollout, though, simply trades one category of risk for another, and DevOps process adjustments are usually the piece teams discover last.

What Shield Platform Encryption Actually Does

Shield Platform Encryption is not an incremental upgrade over Classic Encryption. The differences are architectural, and administrators should understand them before choosing an approach.

Classic Encryption supports 128-bit AES and protects only a special encrypted text custom field type. It cannot encrypt standard fields, files, or attachments, and it offers no customer key management.

Shield Platform Encryption uses 256-bit AES across standard fields, custom fields, files, and attachments, and it supports customer-managed key material. The encryption services are built natively into the platform, so no additional hardware or custom code is required.

CapabilityClassic EncryptionShield Platform Encryption
Cipher strength128-bit AES256-bit AES
What it protectsA special encrypted text custom field type onlyStandard fields, custom fields, files, and attachments
Standard fieldsNot supportedSupported
Files and attachmentsNot supportedSupported
Database-level encryptionNot availableAvailable to Hyperforce customers with a Shield license
Customer-managed keysNot availableBYOK, external key management, and cache-only keys
Key rotationNot availableAdministrator-controlled
LicensingIncluded in paid editionsPaid add-on; free in Developer Edition

Database Encryption vs. Field-Level Encryption

Shield Platform Encryption now offers two distinct approaches, and choosing between them is the first real decision an administrator makes.

Database Encryption encrypts most of your data at rest with a tenant-specific key at the storage layer. It is available to Hyperforce customers with a Shield or Shield Platform Encryption license, and it is transparent: filtering, sorting, and SOQL queries continue to work normally.

Field-level encryption encrypts individual fields, files, and attachments before the data reaches the database, so even someone with database access cannot read the values. That deeper protection is what introduces the functional restrictions covered later in this guide.

The two are not mutually exclusive. Many organizations run Database Encryption as a broad baseline and apply field-level encryption selectively to the fields an auditor specifically requires. Where field-level encryption is layered on top, the standard field-level limitations still apply to those fields.

AttributeDatabase EncryptionField-Level Encryption
ScopeMost data at rest, encrypted by defaultSpecific fields, files, and attachments you select
Where it happensAt the storage layerIn the application, before data reaches the database
Filtering and sortingWorks normallyRestricted, depending on the encryption scheme
SOQL queriesWork normallyRestricted on encrypted fields
Setup effortMinimal; no field-by-field configurationField-by-field policy, plus impact analysis
AvailabilityHyperforce customers with a Shield or Shield Platform Encryption licenseEnterprise, Performance, and Unlimited with a Shield license
Best forBroad baseline protection with no functional trade-offFields an auditor specifically requires protected in the application tier

Takeaway: encrypt broadly with Database Encryption, then reserve field-level encryption for the fields that genuinely justify losing query functionality.

How to Enable Shield Encryption in Salesforce

Enabling Shield encryption is a sequence rather than a switch. The order matters, because several steps cannot be cleanly undone.

Prerequisites first. Shield Platform Encryption requires Enterprise, Performance, or Unlimited Edition with a Shield or Shield Platform Encryption license, and it is available free in Developer Edition for testing. You also need the Manage Encryption Keys permission, which should be assigned deliberately rather than bundled into a general admin profile.

  1. Confirm the license is provisioned and assign the Manage Encryption Keys permission to the specific users who will handle key material.
  2. In Setup, search for Platform Encryption to reach the encryption pages. Field-level encryption can also be managed from the Shield app.
  3. Generate a tenant secret. No data can be encrypted until key material exists.
  4. Back up the tenant secret immediately, before encrypting anything.
  5. Run the Platform Encryption Analyzer to identify which fields are safe candidates.
  6. Set your encryption policy by selecting the fields, files, and data elements to encrypt, choosing the scheme for each field.
  7. Let the synchronization process complete, then verify coverage on the Encryption Statistics page.
  8. Test reports, dashboards, list views, flows, and integrations in a full copy sandbox before repeating the sequence in production.

To confirm encryption is actually active, use the Encryption Statistics page rather than the policy screen. The policy shows what you intended to encrypt. Encryption Statistics shows what is encrypted and when data was last synchronized.

Administrator tip

Turning on encryption for a field does not encrypt the data already sitting in it. Existing records stay in plaintext until they are updated or until you run a synchronization. Check the Encryption Statistics page to confirm what is actually encrypted, and be aware that self-service background encryption can run only once every seven days, so plan the sequence rather than assuming you can re-run it on demand.

Key Hierarchy Administrators Control

Field-level and Database Encryption both use key derivation. A data encryption key is derived on demand from a tenant secret that you control and a primary secret that Salesforce maintains.

Derived keys are never stored in plaintext, so controlling the tenant secret lifecycle gives administrators effective control over the encryption itself. Other features, including external key management and search index encryption, instead use a root key that wraps the data encryption keys directly.

Note the terminology. Salesforce documentation now refers to the Salesforce-held component as the primary secret, replacing older language you may still see in third-party guides.

Operational Limitations That Break Workflows

Encryption protects data and restricts how that data can be queried, filtered, and deployed. Evaluate these constraints against business requirements before encrypting any field, because skipping the assessment produces broken automation and failed deployments.

The table below summarizes the constraints that most often surprise administrators, with the detail following underneath.

AreaWhat breaksWorkaround
Filtering and sortingProbabilistic fields cannot be filtered or sorted; list views cannot sort on encrypted dataUse deterministic encryption where filtering is required
SOQL and SOSLProbabilistic fields excluded from aggregate functions, WHERE, GROUP BY, and ORDER BYDeterministic supports WHERE on non-formula fields; SOSL FIND sometimes helps
Sharing rulesEncrypted fields cannot be used in criteria-based sharing rulesRedesign sharing on an unencrypted attribute
Lookups and matchingNo external lookup relationships; standard matching rules do not detect duplicatesCustom matching rules referencing deterministic fields only
Flows and processesCannot filter or sort on encrypted fields; paused interviews may serialize values unencryptedAvoid loading encrypted values into variables before a wait step
Custom fieldsFields with Unique or External ID attributes cannot be encrypted; no custom metadata typesConfirm field attributes before adding to policy
Package deploymentOnly 80 fields deployable at a timeBatch into phases of fewer than 80 fields
Reports and dashboardsSome probabilistic fields unavailable; charts may cache values unencryptedValidate reporting in a full copy sandbox first

Run the Analyzer First

Before encrypting any field in production, run the Platform Encryption Analyzer, included in the Shield Extension managed package. Access it from the Shield app after installing the extension.

The Analyzer evaluates which fields are suitable candidates and reports the impact on list views, filters, search, and reports. Its output tells you which fields will break something before you find out from a user, and it should drive every decision in the sections below.

Querying and Filtering Restrictions

The encryption scheme you select determines what functionality survives. Probabilistic encryption prevents filtering, sorting, and SOQL WHERE operations on encrypted fields. Deterministic encryption permits exact-match filtering, with no wildcard or range queries.

Fields encrypted with the probabilistic scheme cannot be used in SOQL aggregate functions, WHERE clauses, GROUP BY, or ORDER BY. Encrypted fields of either scheme cannot be used in criteria-based sharing rules, similar opportunities searches, or external lookup relationships.

Flows and processes can reference encrypted fields in most contexts, but not for filtering or sorting. One subtler risk is worth planning for: when a flow pauses or waits, the interview is serialized to the database, and encrypted field values loaded into variables are not always encrypted at rest in that state.

The 80-Field Deployment Limit

Salesforce does not impose a hard limit on how many fields you can encrypt. It does impose one functional limitation on deployment: with Shield Platform Encryption enabled, you can deploy only 80 fields at a time in a package, and packages configured with 80 or more encrypted fields must be deployed in phases containing fewer than 80 fields each. This affects metadata deployments at scale.

A worked example makes the batching concrete. An org encrypting 210 fields across Account, Contact, and Case cannot ship them as one package. Split into three phases of roughly 70 fields each, sequence them by object so dependencies resolve cleanly, and validate each phase in the target org before starting the next.

CI/CD pipelines need batching logic to orchestrate that sequence, which is the point where manual change sets stop being viable.

Takeaway: the limit is about deploying packages, not about how much you can encrypt, and it is a pipeline design problem rather than a policy problem.

Deterministic vs. Probabilistic Encryption

Deterministic and probabilistic encryption are the two schemes available for field-level encryption, and the choice is per field rather than per org.

Probabilistic encryption generates different ciphertext each time the same value is encrypted, which offers the stronger protection and removes the most functionality. Deterministic encryption generates consistent ciphertext for the same value, which is what allows exact-match filtering to keep working, at the cost of revealing which records share a value.

AttributeProbabilisticDeterministic
Ciphertext behaviorDifferent every time the same value is encryptedConsistent for the same value
Security levelStronger; reveals nothing about value repetitionWeaker; reveals which records share a value
Exact-match filteringNot supportedSupported
Wildcard and range queriesNot supportedNot supported
SOQL WHERE clauseNot supportedSupported on non-formula fields
SortingNot supportedNot supported
ReportingSome fields unavailable in reports and list viewsBroader availability
Duplicate managementNot supported by custom matching rulesSupported by custom matching rules
Use whenThe field is stored and displayed but never searched or filteredA documented business process must filter or match on the field

Takeaway: every field moved to deterministic encryption is a deliberate security trade made for a named business requirement, and should be documented as such.

Key Management: The Highest-Risk Responsibility

Tenant secret management carries permanent consequences that no other Salesforce configuration decision shares.

Salesforce states plainly that it cannot help you with deleted, destroyed, or misplaced tenant secrets. If a tenant secret is destroyed without a backup, all data encrypted with keys derived from it becomes permanently unreadable. There is no escalation path and no recovery.

The implication is simple and often skipped: back up every tenant secret immediately after generation, store the backup outside Salesforce, and make key destruction a procedure requiring more than one person.

Administrator tip

Destroying a tenant secret is the one Salesforce action with no recovery path. Salesforce states it cannot help with deleted, destroyed, or misplaced tenant secrets. Require two-person authorization for key destruction, store tenant secret backups outside Salesforce, and enable multi-factor authentication for key management. Also note that if you destroy a key, search terms for the affected fields remain in the search index even though the data can no longer be decrypted.

Rotation and BYOK Considerations

Key rotation applies new tenant secrets to future data while retaining previous keys so existing records stay readable. Beyond Salesforce-managed keys, Shield supports Bring Your Own Key, external key management through a service such as AWS KMS, and cache-only keys fetched on demand rather than stored. Each option moves more control, and more operational burden, to you.

ConsiderationSalesforce-managed keysBYOK and external key management
Key generationSalesforce generates the tenant secretYou generate key material in your own key service
Operational overheadLowHigher; you own generation, storage, and availability
Revoking Salesforce accessNot possible independentlyYou can revoke access to key material at any time
Integration with enterprise KMSNot applicableSupported, including external key management with AWS KMS
Cache-only keysNot applicableAvailable; keys are fetched on demand rather than stored
Risk if key material is lostBackup is still your responsibilityEntirely your responsibility, including availability of your KMS
Choose whenNo regulatory requirement for customer-held keysAn auditor or policy requires demonstrable cryptographic control

Takeaway: choose BYOK because a control requirement demands it, not because it sounds more secure, since the added control comes with real operational cost.

Deployment and DevOps Impact

Shield Platform Encryption changes how metadata moves between environments, so DevOps teams need to adjust pipeline design, testing workflows, and sandbox management. A workable implementation order is: enable encryption in a developer sandbox, run the Analyzer, encrypt a small pilot field set, validate reports and automation, then promote the policy and the batched metadata through your normal pipeline stages.

Asynchronous Encryption Creates Test Failures

A timing issue affects automated pipelines. The encryption compliance check runs asynchronously, after the Metadata API has already reported deployment success. Apex tests that query encrypted fields can fail if they execute before encryption processing finishes.

A two-phase deployment resolves it:

  1. Deploy the field metadata and encryption policy changes on their own.
  2. Wait for encryption processing to complete and confirm it on the Encryption Statistics page.
  3. Deploy the dependent Apex code and tests in a second package.
  4. Run the test suite only after both phases have landed.

Sandbox Refresh Behavior

When Shield Platform Encryption is enabled in production, encryption settings including tenant secrets copy automatically to sandboxes during refresh, so no manual reconfiguration is needed.

After every refresh, verify three things before the sandbox is used for testing: that the encryption policy matches production, that key material is present and current, and that reports, dashboards, flows, and processes still behave as expected. Salesforce recommends testing all of those in a sandbox before applying encryption changes to production.

Takeaway: a sandbox refresh is a checkpoint, not a formality, because an encryption policy drift between environments surfaces as a failed production deployment.

Compliance Requirements Shield Addresses

Shield Platform Encryption maps to specific regulatory mandates, but in every case the platform supplies a capability and the administrator supplies the evidence.

FrameworkRequirementWhat Shield providesWhat remains yours
HIPAA45 CFR 164.312(a)(2)(iv) and (e)(2)(ii) treat encryption as an addressable specificationEncryption at rest for ePHI fields, files, and attachmentsImplementing it or documenting a reasonable alternative, plus session and access controls
GDPRArticle 32(1)(a) names pseudonymisation and encryption as appropriate technical measuresEncryption at rest with customer-managed key materialLawful basis, data subject requests, retention, and demonstrating cryptographic control
PCI DSSCardholder data must be protected using compliant cryptographyField-level encryption for cardholder data fieldsYour own PCI DSS compliance for fields encrypted deterministically; these fall outside Salesforce's attestation
SOXSection 404 requires documented internal control over financial reportingField Audit Trail and Event Monitoring for extended history and activity loggingChange approval records, role separation, and deployment audit trails

PCI DSS deserves a specific caution. Salesforce holds a PCI DSS Attestation of Compliance, but customers who use deterministic encryption for primary account numbers or other cardholder data fall outside the scope of that attestation and are responsible for their own PCI DSS compliance on those fields.

Takeaway: a Salesforce certification covers Salesforce, and your auditor will still ask for evidence of your own configuration.

Salesforce Shield Platform Encryption Documentation

Salesforce publishes extensive Shield Platform Encryption documentation, and knowing which page answers which question saves considerable time.

  • What You Can Encrypt. Covers Database Encryption, standard and custom fields, search indexes, Data 360 data stores, files and attachments, event bus data, Chatter data, and CRM Analytics data.
  • General Shield Platform Encryption Considerations. The single most useful page for planning. It lists feature-by-feature behavior changes across leads, user email, flows, reports, search, duplicate management, and more.
  • Considerations for Using Deterministic Encryption. The specific SOQL and SOSL compatibility detail for filter-preserving encryption.
  • Key Management and Rotation. Generating, backing up, rotating, and destroying key material, plus BYOK, external key management, and cache-only keys.
  • Trailhead: Shield Platform Encryption for Admins. A guided module covering architecture, key management, and encryption policies.

Check the considerations page before encrypting any field type you have not encrypted before, and re-check it after each Salesforce release.

Before Enabling Salesforce Shield Encryption: Administrator Checklist

Work through this before any production change. Most Shield incidents trace back to a skipped item here rather than to a misconfiguration.

Scoping and analysis
  • Confirm which fields a regulation or auditor actually requires encrypted, rather than encrypting broadly by default.
  • Decide whether Database Encryption alone meets the requirement before committing to field-level encryption.
  • Install the Shield Extension and run the Platform Encryption Analyzer against every candidate field.
  • Review the Analyzer output for impacts on list views, filters, search, and reports.
  • Check the General Shield Platform Encryption Considerations page for each field type on your list.
  • Confirm no candidate field has Unique or External ID attributes.
Key management
  • Assign the Manage Encryption Keys permission only to named individuals.
  • Generate the tenant secret and back it up immediately, outside Salesforce.
  • Require multi-factor authentication for key management operations.
  • Document a rotation schedule and a two-person rule for key destruction.
  • Decide between Salesforce-managed keys, BYOK, external key management, or cache-only keys before enabling.
Testing and deployment
  • Take a verified backup of data and metadata before any encryption change.
  • Enable the full encryption policy in a full copy sandbox and test under realistic conditions.
  • Test reports, dashboards, list views, flows, processes, and integrations against encrypted fields.
  • Choose the encryption scheme per field and document why any field uses deterministic.
  • Batch package deployments into phases of fewer than 80 encrypted fields.
  • Plan the two-phase deployment so Apex tests run only after encryption processing completes.
  • Verify coverage on the Encryption Statistics page after every change.
  • Re-verify encryption policy and key material after every sandbox refresh.

Making Encryption Work Across Your Release Process

Three points are worth carrying out of this guide. Database Encryption and field-level encryption solve different problems, and most orgs should use both rather than choosing one. The encryption scheme decides which functionality survives, so it is a business decision as much as a security one. And tenant secret management is the only Salesforce configuration where a mistake is permanent.

The operational weight lands on the release process. The 80-field package limit and asynchronous encryption processing require batched, sequenced deployments with validation between phases, which is exactly what manual change sets handle poorly.

Flosum is an end-to-end enterprise DevSecOps platform purpose-built for Salesforce. Automated pipelines orchestrate batched metadata deployments, policy-based controls govern what reaches production, and audit trails for compliance capture the deployment history auditors ask for.

When audit deadlines approach, complete deployment history and change documentation shorten preparation considerably. Request a demo to see how encryption-aware release management works in practice.

Frequently Asked Questions (FAQ)

What is Salesforce Shield?
Salesforce Shield is a paid add-on suite of security and compliance tools. It includes Shield Platform Encryption for encrypting data at rest, Event Monitoring for tracking user and system activity, Field Audit Trail for extended field history retention, and Data Detect for locating sensitive data across your org.
What type of encryption does Salesforce Shield use?
Shield Platform Encryption uses AES 256-bit encryption. Field-level encryption offers two schemes: probabilistic, which produces different ciphertext for the same value and provides stronger protection, and deterministic, which produces consistent ciphertext so exact-match filtering still works. Database Encryption encrypts most data at rest transparently.
How do you enable Shield encryption in Salesforce?
First confirm your org has a Shield or Shield Platform Encryption license. Generate a tenant secret, then set your encryption policy by selecting the fields, files, and data elements to encrypt. Run the Platform Encryption Analyzer before touching production, and test the full policy in a full copy sandbox first.
How do you check if Shield Platform Encryption is enabled?
In Setup, search for Platform Encryption. If encryption is available, you can view your encryption policy and key material there. The Encryption Statistics page shows which fields and data elements are actually encrypted and when data was last synchronized, which is the fastest way to confirm real coverage rather than intended coverage.
What are the limitations of Salesforce Shield Platform Encryption?
Field-level encryption restricts filtering, sorting, and SOQL operations on encrypted fields. Encrypted fields cannot be used in criteria-based sharing rules, similar opportunities searches, or external lookup relationships. Package deployments are limited to fewer than 80 encrypted fields per phase. Database Encryption avoids most of these restrictions.
How much does Salesforce Shield cost?
Salesforce does not publish list pricing for Shield. It is sold as an add-on priced as a percentage of your net spend on applicable Salesforce products rather than a flat per-user fee, so the cost scales with your contract. Licensing advisors commonly report figures in the 20 to 30 percent range. Shield is free in Developer Edition.
What is the difference between Salesforce Shield and Classic Encryption?
Classic Encryption uses 128-bit AES and protects only a special encrypted text custom field type. Shield Platform Encryption uses 256-bit AES across standard fields, custom fields, files, and attachments, supports customer-managed keys through BYOK, and offers both database-level and field-level encryption. Classic Encryption offers none of that.
Table Of Contents
Author
Stay Up-to-Date
Get flosum.com news in your inbox.

Thank you for subscribing