Master data encryption at rest with comprehensive setup instructions, best practices, implementation lessons learned, and expert guidance on field selection
Reading time: ~27 minutes| Last Updated: August 2026
Article Updated: August 2026
This article has been refreshed with the latest information, updated best practices, and current release coverage through Summer '26. Originally published January 2026.
What's New in This Update (August 2026)
Added: Database Encryption (GA Spring '26) - whole-database AES-256 GCM encryption without query tradeoffs
Added: The unified Shield app and the Field-Level Encryption management transition (Setup UI retires Winter '27)
Updated: Standard-field coverage including Opportunity Name and Spring '26 additions
Updated: Key management guidance with official rotation caps and per-type secret limits
Added: External Key Management and expanded BYOK coverage
Updated: Data Detect and Field Audit Trail 2026 capabilities (scheduled scans; 200 tracked fields)
In This Guide
12
In-Depth Sections
Shield Feature
256-bit
AES Encryption
In This Guide
6
FAQs Answered
Shield Feature
BYOK
Key Management
1
What is Shield Platform Encryption?
Quick Answer: Salesforce Shield Platform Encryption is a native security feature that encrypts sensitive data at rest using AES 256-bit encryption. It protects standard and custom fields, files, attachments, and Chatter data while maintaining application functionality like search, Flows, and validation rules. Since Spring '26 it also includes Database Encryption, which encrypts the entire database without query tradeoffs.
According to Salesforce official documentation, Shield Platform Encryption is part of the Salesforce Shield suite - a set of security tools that helps administrators and developers build extra levels of trust, compliance, and governance right into business-critical applications.
The Four Components of Salesforce Shield
Salesforce Shield consists of four main components, each addressing different security needs:
Platform Encryption: Encrypts data at rest (when stored in Salesforce data centers) using 256-bit AES encryption
Event Monitoring: Tracks user activity and data access patterns for security analysis
Field Audit Trail: Retains field history data for up to 10 years for compliance requirements, with up to 200 tracked fields per object since Spring '26
Data Detect: Automatically scans your database to identify sensitive data like credit card numbers, SSNs, and emails. Summer '26 added scheduled scans and the ability to scan encrypted data; Data Detect now runs from the Shield app rather than the legacy managed package
Key Insight: You can purchase the full Shield bundle or individual components based on your regulatory and business requirements. Platform Encryption is often the most sought-after component for organizations with compliance mandates. Since Spring '26, all four products are unified in a single Shield app with guided setup.
Two Encryption Capabilities: Field-Level Encryption and Database Encryption
Shield Platform Encryption now offers two complementary capabilities:
Field-Level Encryption (FLE): The official name for the selective field encryption this guide has always covered - you choose which standard and custom fields, files, attachments, and Chatter data to encrypt with AES-256 (CBC mode)
Database Encryption (GA Spring '26): Encrypts the entire database - all standard and custom fields, metadata, and Apex - with AES-256 GCM, and supports sort, filter, and query operations without the functional tradeoffs of field-level encryption
Most of this guide focuses on Field-Level Encryption, since that's where field selection, encryption schemes, and query considerations come into play. Where behavior differs, Database Encryption is called out explicitly.
Why Platform Encryption Matters
Shield Platform Encryption helps organizations meet legal and contractual obligations while ensuring sensitive customer data is encrypted according to industry best practices. Shield is compliant with or exceeds requirements for GDPR, HIPAA, and SOX standards.
Unlike traditional encryption that might break application functionality, Shield Platform Encryption maintains critical features such as:
2
Classic Encryption vs Shield Platform Encryption
Understanding the differences between Classic Encryption and Shield Platform Encryption is crucial for making the right security decision. According to the Salesforce Security Implementation Guide, these two approaches serve different purposes and have distinct capabilities.
Feature
Classic Encryption
Shield Platform Encryption
Encryption Algorithm
128-bit AES
256-bit AES
Cost
Included with base Salesforce license
Additional cost (20% of net spend)
Field Support
Custom text fields only (175 char limit)
Standard & custom fields, files, attachments
Key Management
Salesforce-managed only
BYOK (Bring Your Own Key) supported
Data Masking
Yes (hides data with random characters)
No (use field-level security instead)
Formula Fields
Not supported
Supported
Flows (Automation)
Not supported
Supported
Reports & Search
Data exposed in reports/search
Encrypted at all levels
When to Use Classic Encryption
Classic Encryption is appropriate for basic security needs where:
You need to mask sensitive data (like SSNs or credit card numbers) from internal users
You don't have regulatory compliance requirements
Budget constraints prevent purchasing Shield
You only need to protect a small number of custom text fields
When to Use Shield Platform Encryption
Shield Platform Encryption is the superior choice when:
You need to meet compliance requirements (HIPAA, GDPR, SOX, PCI-DSS)
You require encryption of standard fields (Account Name, Contact Email, etc.)
You need to encrypt files and attachments
You want control over your encryption keys (BYOK)
You need encryption that works with Flows, formulas, and validation rules
Important: The biggest drawback of Classic Encryption is that encrypted data can still be exposed in reports, search results, and API responses. Shield Platform Encryption solves this by ensuring encryption at all levels, making it the superior choice for high-security environments.
The Comparison Is Now Three-Way: Database Encryption (GA Spring '26)
With Database Encryption generally available since Spring '26, the encryption decision is no longer just Classic vs Shield - it's a three-way comparison between Classic Encryption, Field-Level Encryption, and Database Encryption:
Aspect
Classic Encryption
Field-Level Encryption (FLE)
Database Encryption
Scope
Custom text fields only (175 char limit)
Selected standard and custom fields, files, attachments, Chatter
Entire database: all standard and custom fields, metadata, and Apex
Database tenant secret with BYOK support (Cache-Only Key Service not supported)
Which one? Database Encryption is the fastest path to encrypting everything at rest without touching queries, reports, or Apex. Field-Level Encryption remains valuable when you need granular, field-by-field control - and the two can be used together.
3
How Shield Platform Encryption Works
Shield Platform Encryption uses a sophisticated key derivation process to protect your data. According to the Shield Platform Encryption Architecture documentation, the encryption relies on a combination of secrets that work together to secure your data.
Key Architecture
Tenant Secret
Customer-controlled unique secret
You control this
KDF Seed
Salesforce-maintained secret (formerly called the master secret)
Salesforce controls
Data Encryption Key
Used to encrypt/decrypt data
Protects your data
Salesforce combines your tenant secret with the KDF seed (formerly master secret) using PBKDF2 on hardware security modules (HSMs) to derive the data encryption keys. Derived keys are never persisted - they're held in a secure, encrypted cache and re-derived when needed.
Encryption Schemes: Probabilistic vs Deterministic
Field-Level Encryption offers two encryption schemes, each with different security and functionality trade-offs (Database Encryption doesn't need schemes - it has no query tradeoffs):
Aspect
Probabilistic Encryption
Deterministic Encryption
How It Works
Same text produces different ciphertext each time
Same text always produces same ciphertext
Security Level
Higher (fully randomized initialization vector)
Slightly lower (static initialization vector)
Filtering/Search
Not supported
Supported (can filter on encrypted fields)
Report Filters
Not supported
Supported
List Views
Cannot filter
Can filter
Use Case
Maximum security for non-searchable data
Balance of security and functionality
Recommendation: Use probabilistic encryption whenever data in a field will not need to be filtered or searched. Reserve deterministic encryption only for fields where filtering capability is essential for business operations.
Deterministic Variants: Deterministic encryption comes in case-sensitive and case-insensitive variants. Choose based on how your filters and matching logic compare values - case-insensitive matching behaves like standard Salesforce filtering.
The Encryption Process
Here's how data flows through Shield Platform Encryption when a user saves sensitive information:
User
Salesforce
Database
Enter data via UI/API
Detect encrypted field
Derive key (Tenant secret + KDF seed)
AES-256 encrypt data
Store ciphertext at rest
4
Which Fields Can Be Encrypted?
One of the most common questions about Shield Platform Encryption is: "Can I choose which fields to encrypt?" The answer is yes - you have granular control over field encryption. According to the Salesforce Help documentation on standard fields, you can encrypt specific standard and custom fields based on your security requirements.
Supported Custom Field Types
The following custom field types can be encrypted:
Subject, Description, Case Comments (Body and internal comments)
Opportunity
Opportunity Name, Description, Next Step
Chat Transcript
Body, Supervisor Transcript Body
Person Account
All Account + Contact fields applicable to Person Accounts (including Email, which is encryptable on Person Accounts only)
The List Keeps Growing: Salesforce expands the supported standard-field list with most releases - Case Rich Text Description became encryptable in Spring '26, and Activity fields, Email Message, and User Email are also supported. Check the official documentation for the current list before planning your encryption policy.
Industry Clouds: Shield Platform Encryption also supports specific standard fields in CPQ, Health Cloud, Financial Services Cloud, Sales Cloud, Service Cloud, and Workplace Command Center. Consult the Which Standard Fields Can I Encrypt? documentation for the complete list.
Files, Attachments, and Chatter
Beyond field-level encryption, Shield supports:
Data Type
Encryption Behavior
Selectivity
Files & Attachments
All-or-nothing when policy is enabled
Cannot selectively encrypt individual files
Chatter
Encrypts posts, comments, questions, polls, link names/URLs
All Chatter fields encrypted when enabled
Search Index
Search index files can be encrypted
All-or-nothing
CRM Analytics
Datasets can be encrypted
Configurable
Important Note: When encryption policy for files and attachments is enabled, all new files will be encrypted at rest. File and attachment encryption is binary (all or nothing). For existing data, self-service background encryption covers standard and custom fields, Attachment - Content Body, and field history and feed tracking. A Salesforce Support case is needed only for other encrypted data, such as Files (ContentVersion).
The Shield App Transition: Spring '26 unified all four Shield products in a single Shield app with guided setup, and Field-Level Encryption management moved into the Shield app in Summer '26. The Setup-based encryption UI shown below still works today, but it's scheduled to retire in Winter '27 - plan to manage encryption from the Shield app going forward.
Pre-Implementation Checklist
Complete these critical steps before enabling Shield Platform Encryption in your org:
Required
Data Classification
Identify and categorize sensitive data across your org before deciding what to encrypt.
Run Data Detect scan
Identify PII, PHI, financial data
Document compliance requirements
Required
Threat Model Assessment
Define what threats you're protecting against to choose the right encryption approach.
Compliance needs (GDPR, HIPAA, SOX)
Data breach protection priorities
Insider threat considerations
Recommended
Field Impact Analysis
Evaluate how encryption will affect your existing functionality and integrations.
Review formulas using target fields
Check reports and list view filters
Audit Apex SOQL WHERE clauses
Recommended
AppExchange Compatibility
Verify all installed packages work correctly with Shield Platform Encryption.
List all installed packages
Contact vendors for Shield support
Test integrations in sandbox
Best Practice
Sandbox Testing
Always test encryption in a full sandbox environment before production deployment.
According to Salesforce Trailhead, Shield Platform Encryption requires only two system permissions:
Permission
Purpose
Assign To
Manage Encryption Keys
Generate, rotate, export, import, and destroy tenant secrets
Security Admin only (very limited users)
Customize Application
Enable encryption on fields, modify encryption policies
Salesforce Admins who configure encryption
Important: Shield Platform Encryption does NOT have a "View Encrypted Data" permission (that's Classic Encryption). With Shield, encryption is transparent - users who have field-level security access to a field automatically see decrypted data. Use FLS, profiles, permission sets, and sharing rules to control data visibility.
Critical Warning: Ensure System Administrators do NOT have the "Manage Encryption Keys" permission by default. If someone destroys a tenant secret and no exported backup exists, encrypted data is permanently unreadable - although destroyed keys can be re-imported from a securely stored backup. Limit this permission to a dedicated Security Admin role with strict access controls, and always export secrets before rotation or destruction.
6
BYOK & Key Management
For organizations requiring complete control over their encryption keys, Shield Platform Encryption offers BYOK (Bring Your Own Key) capabilities. According to the Salesforce BYOK documentation, you can upload your own key material or use the Cache-Only Key Service.
Key Management Options
Option
Description
Best For
Salesforce-Generated Keys
Salesforce generates and manages your tenant secret
Most organizations without strict key control requirements
Customer-Supplied Keys (BYOK)
Upload your own 256-bit AES key material
Organizations requiring key ownership for compliance
Cache-Only Key Service
Store keys externally; Salesforce fetches on demand
Maximum control - keys never persist in Salesforce
External Key Management (EKM)
Manage key material in a supported external key management service
Organizations standardizing on an external KMS for all clouds
BYOK coverage has expanded well beyond field encryption: it now spans Field-Level Encryption, Database Encryption, Event Bus, and Search Index. Root-key BYOK is also available for Data 360 and Backup & Recover Next, giving you customer-controlled keys across the wider Salesforce estate.
4096-bit RSA, self-signed or CA-signed, Platform Encryption enabled
3
Generate & Encrypt
Create 256-bit AES key, encrypt with the public key of your PKCS#8 encrypted, Base64 encoded 4096 RSA key pair
4
Upload to Salesforce
Key Management → Upload encrypted key material
5
Activate Key
Set as active for Data in Salesforce, Analytics, etc.
Cache-Only Key Service: For maximum control where keys never persist in Salesforce, use the Cache-Only Key Service. This requires setting up Named Credentials pointing to your external key service and using the CacheOnlyKeyWrapper tool (repo archived Feb 2022; still referenced by Salesforce docs) to format keys. Note that the Cache-Only Key Service is not supported with Database Encryption.
Rotation Frequency: Align rotation with your organization's security policies. Salesforce enforces rotation caps: once per 24 hours in production (once per 4 hours in sandboxes) for probabilistic tenant secrets, once per 7 days for deterministic tenant secrets, and once every 3 months for the database tenant secret
Backup Keys: Securely export and back up every old tenant secret before rotation
Key Archival: Archived keys are needed to decrypt historical data
Key Recovery: Destroyed keys can be re-imported from your exported backup, restoring access to data encrypted with them
Automatic Re-encryption: Newly created and edited data uses the most recent key automatically
Pro Tip: When you rotate keys, existing data doesn't automatically get re-encrypted. Use the Encryption Statistics page to synchronize existing data with your latest encryption policy, or touch records programmatically to trigger re-encryption.
Fields encrypted with Field-Level Encryption have significant query restrictions - these limits apply to FLE only; Database Encryption filters and sorts freely with no query tradeoffs. For deterministic encryption specifics, see the deterministic encryption considerations:
Operation
Probabilistic Encryption
Deterministic Encryption
WHERE clause
Not supported
Supported (exact match only)
ORDER BY clause
Not supported
Not supported
GROUP BY clause
Not supported
Not officially documented - test carefully
Aggregate functions (MAX, MIN, COUNT_DISTINCT)
Not supported
Not supported
LIKE operator
Not supported
Not supported (exact match only)
// This SOQL will FAIL if Account.Name is encrypted with probabilistic scheme
Account[] accts = [SELECT Id, Name FROM Account WHERE Name = 'Acme Corp'];
// This will work with deterministic encryption
Account[] accts = [SELECT Id, Name FROM Account WHERE Name = 'Acme Corp'];
// This will NEVER work (ORDER BY on encrypted field)
Account[] accts = [SELECT Id, Name FROM Account ORDER BY Name];
Field Character Limits
According to the field limits documentation, encrypted content is often longer than its plaintext, which can impose stricter limits:
Test field limits in longer fields like Address and Subject
Non-ASCII values (Chinese, Japanese, Korean) may have additional length restrictions
Character limits on encrypted fields are often lower than standard field lengths
Feature Restrictions
Feature
Impact with Encryption
Report Filters
Cannot filter on probabilistically encrypted fields
List View Filters
Cannot filter on probabilistically encrypted fields
Einstein Lead Scoring
Isn't available with encrypted fields
Duplicate Management
Custom matching rules work with deterministic encryption; merge duplicate search and duplicate jobs don't support encrypted fields
Web-to-Case
Web fields (Company, Email, Name, Phone) are NOT encrypted at rest
Email Bounce Handling
Does not support encrypted email addresses
AppExchange Compatibility
Not all AppExchange applications are Shield-compatible:
Important: Some apps aren't compatible with encryption and can prevent you from enabling Shield Platform Encryption. Always verify with vendors before implementing. Notable incompatibilities include certain features of Heroku, Thunder, and Quip integrations, as well as Connect Offline, Marketing Cloud Engagement, and Salesforce Billing.
Storage Impact
Good news: Encrypting files, fields, and attachments does NOT affect your org's storage limits. The encrypted ciphertext storage is handled transparently.
Define Your Threat Model: Walk through a formal threat-modeling exercise to identify which threats are most likely to affect your organization
Encrypt Strategically: Don't encrypt everything - focus on PII, financial records, and critical business data
Start with Data Classification: Use Data Detect first to identify sensitive data before deciding what to encrypt
Implementation Lessons
Lesson 1: Always test encryption in a full sandbox environment before enabling in production. This reveals impacts on custom Apex, formulas, and integrations that aren't obvious from documentation alone.
Lesson 2: Data will be encrypted after Shield is enabled, but existing data requires synchronization. Use the self-service Background Encryption from the Encryption Statistics page (available since Spring '19) - you can sync once every 7 days, and Summer '26 raised the per-object size limit to 40 million records. Self-service sync covers standard and custom fields, Attachment - Content Body, and field history and feed tracking; for other encrypted data such as Files (ContentVersion), submit a Salesforce Support case.
Lesson 3: Review ALL Apex code that queries encrypted fields. Code using encrypted fields in WHERE clauses will fail if using probabilistic encryption. Fix violations before enabling encryption.
Security vs Functionality Balance
Understanding when Shield is the right solution:
Security Concern
Right Solution
Protect data from internal Salesforce users
Use OWD, Sharing Rules, Profiles, and FLS (NOT Shield)
Compliance requirements (HIPAA, GDPR, SOX)
Shield Platform Encryption
Database-level security at data center
Shield Platform Encryption
Hide data in UI with masking
Classic Encryption or Field-Level Security
Key Management Lessons
Limit Key Permissions: Create a dedicated "Security Admin" profile with very limited users who can manage encryption keys
Document Key Rotation: Maintain a log of all key rotations with dates and reasons
Backup Before Rotation: Always export and securely store the current tenant secret before generating a new one
Test Key Recovery: Periodically verify you can restore encrypted data using archived keys
9
Dos and Don'ts
DO These Things
Classify your data firstIdentify what's truly sensitive before encrypting anything
Test in sandbox extensivelyTest all integrations, reports, and Apex code before production
Verify AppExchange compatibilityContact vendors to confirm Shield readiness before enabling
Rotate keys per your security policyFollow your organization's compliance cadence within Salesforce's rotation caps
Backup tenant secretsExport and securely store keys before rotation - exported secrets can be re-imported if a key is ever destroyed
Use deterministic encryption for searchable fieldsBalance functionality with security needs
DON'T Do These Things
Encrypt everythingUnnecessary encryption slows performance and affects UX
Give System Admins key management permissionsAccidental deletion of tenant secret = permanent data loss
Enable in production without sandbox testingEncryption can break critical business processes unexpectedly
Use Shield for internal user access controlUse profiles, permission sets, sharing rules, and FLS instead
Forget to encrypt existing dataNew data is auto-encrypted; existing data needs background sync
Use probabilistic encryption on searchable fieldsProbabilistic encryption prevents filtering and searching
10
Pricing & Licensing
Salesforce Shield pricing is unique - it's based on a percentage of your total Salesforce spend rather than per-user pricing. According to Salesforce's official Shield pricing page, the cost structure works as follows:
Pricing Structure
Component
Pricing (% of Net Spend)
What's Included
Platform Encryption
20%
Field encryption, file encryption, BYOK support
Data Detect
15%
Sensitive data identification and classification
Event Monitoring
10%
User activity tracking, security analytics
Field Audit Trail
10%
10-year field history retention
Full Shield Bundle
30%
All four components (Encryption, Event Monitoring, Field Audit Trail, Data Detect)
Example Calculation: If you're spending $1,000,000/year on Sales Cloud and Service Cloud, and you purchase the full Shield bundle at 30%, you will pay an additional $300,000/year for Shield. For Platform Encryption alone at 20%, that would be $200,000/year.
Edition Availability
Salesforce Edition
Shield Availability
Developer Edition
Free (for testing and development)
Enterprise Edition
Available as add-on subscription
Performance Edition
Available as add-on subscription
Unlimited Edition
Available as add-on subscription
11
Common Problems & Solutions
Based on Salesforce's officially documented deployment behaviors and experiences commonly reported by deployment practitioners, here are the most frequently encountered Shield Platform Encryption problems and their solutions.
Officially Documented Deployment Behaviors: A deployment package can include up to 80 encrypted fields. When the encryption attribute of a field differs between source and target, the target org's attribute wins. Salesforce also runs an automatic guideline check when you deploy encrypted fields, flagging configurations that conflict with encryption.
Problem 1: Deployment Succeeds but Encryption Fails
Symptom: Your deployment reports success, but the field encryption is not applied. You receive an email from Salesforce about an encryption failure after the deployment.
Root Cause: As commonly reported by deployment practitioners, Salesforce executes the encryption compliance check asynchronously to the Metadata API deployment. The API reports success before the encryption compatibility check completes.
Solution:
Monitor your email for post-deployment encryption failure notifications
Review the failure details in the email and address the specific compatibility issues
Redeploy the CustomObject field after resolving conflicts
Use Encryption Statistics page to verify encryption was applied
Problem 2: SOQL Tests Fail with Deterministic Encryption
Symptom: After deploying encrypted fields with Apex classes, your SOQL queries mysteriously return no records, causing test failures.
Root Cause: Deployment practitioners commonly report that Salesforce doesn't encrypt the field immediately upon Metadata API deployment. The encryption is applied later after compatibility checks. Meanwhile, your Apex tests run against non-encrypted fields, and queries on encrypted fields fail.
Solution:
1
Split Your Deployment
Deploy encrypted fields in the first package, then deploy Apex classes/tests separately
2
Wait for Encryption
Allow time for Salesforce to apply encryption before running tests
3
Run Tests Separately
Execute test classes after confirming encryption is active via Encryption Statistics
Problem 3: Process Builder Conflicts
Symptom: Deployment fails with error indicating Process Builder uses the encrypted field in an Update Records filter.
Root Cause: You cannot use encrypted fields in Process Builder Update Records filters. Even inactive versions in the target org cause conflicts.
Solution:
Go to the target org and delete all inactive Process Builder versions that reference the to-be-encrypted field in Update Records filters
Deploy a new version of Process Builder that doesn't use the encrypted field in filters
Ensure the new version is active before deploying the encrypted field
Migrate to Flow: Process Builder is retiring, so treat any encryption conflict as the trigger to move that automation to Flow, which has better encryption compatibility
Problem 4: Third-Party App Incompatibility
Symptom: AppExchange packages fail or behave unexpectedly after enabling encryption. Some apps prevent enabling Shield entirely.
Root Cause: Not all AppExchange applications are Shield-compatible. Some apps directly query encrypted fields in ways that break with encryption enabled.
Solution:
Before enabling Shield, audit all installed packages
Contact each vendor to confirm Shield compatibility
Request Shield-ready updates from vendors if needed
Consider alternative apps if vendors cannot support Shield
Test thoroughly in sandbox with all packages before production
Problem 5: System Propagation Delays
Symptom: After turning encryption on or off, the system reports inconsistent states. Fields show as encrypted when they're not, or vice versa.
Root Cause: Deployment practitioners commonly report propagation delays in the architecture behind platform encryption when toggling encryption on and off.
Solution:
Wait several minutes after making encryption changes before testing
Use the Encryption Statistics page to verify actual encryption status
Don't rapidly toggle encryption on and off during testing
Clear browser cache if UI shows stale information
Problem 6: SOQL WHERE Clause Violations
Symptom: Existing Apex code fails at runtime with errors about encrypted fields in WHERE clauses.
// This code FAILS with probabilistic encryption
List<Contact> contacts = [SELECT Id, Email FROM Contact WHERE Email = :searchEmail];
// Workaround: Use SOSL instead for search scenarios
List<List<SObject>> results = [FIND :searchEmail IN ALL FIELDS RETURNING Contact(Id, Email)];
// Alternative: Use deterministic encryption (if search is required)
// Configure field for deterministic encryption in Encryption Policy
Solution:
Audit all Apex code for SOQL queries using encrypted fields in WHERE clauses
Use SOSL FIND statements as a workaround for search scenarios
Switch to deterministic encryption for fields that must be searchable
Refactor code to filter results in Apex after querying without WHERE filters
Problem 7: Existing Data Not Encrypted
Symptom: After enabling encryption, existing records still show unencrypted data in exports or backups.
Root Cause: Shield Platform Encryption only encrypts newly created and modified data. Existing data must be explicitly synchronized.
Solution:
Use the Encryption Statistics page to sync existing data with your policy
Programmatically touch records to trigger re-encryption (update with same values)
Plan for data synchronization during implementation, not as an afterthought
Problem 8: Performance Degradation
Symptom: Page load times increase, reports run slower, and bulk operations take longer after enabling encryption.
Root Cause: Encryption/decryption operations add processing overhead, especially for frequently accessed fields or large data volumes.
Solution:
Only encrypt fields that truly require protection (PII, financial data, compliance-mandated)
Avoid encrypting fields used in high-frequency operations
Use selective field encryption instead of encrypting everything
Monitor performance before and after enabling encryption
Consider whether deterministic vs probabilistic impacts your specific use cases
?
Frequently Asked Questions
Salesforce Shield Platform Encryption is a security feature that natively encrypts sensitive data at rest using AES 256-bit encryption. It includes Field-Level Encryption for selected standard and custom fields, files, attachments, and Chatter data, plus Database Encryption (generally available since Spring '26) that encrypts the entire database. Application functionality like search, Flows, and validation rules keeps working.
Classic Encryption uses 128-bit AES and only encrypts custom text fields up to 175 characters with data masking capabilities. Shield Platform Encryption uses stronger 256-bit AES, encrypts both standard and custom fields, files, and attachments, and supports BYOK (Bring Your Own Key). Shield works with formulas and Flows, while Classic does not. Classic is free but exposes data in reports; Shield is paid but encrypts at all levels.
Shield Platform Encryption is priced at 20% of your net Salesforce spend when purchased standalone. Data Detect is 15%, Event Monitoring is 10%, and Field Audit Trail is 10%. The full Shield bundle costs 30% of net spend. For example, if you spend $500,000/year on Salesforce products, encryption alone would cost $100,000/year. It's available free in Developer Edition for testing purposes.
Yes, you can selectively encrypt specific standard and custom fields. You choose which fields to encrypt based on your data classification and compliance requirements. However, files and attachments follow an all-or-nothing approach - when the encryption policy is enabled, all files and attachments are encrypted. Chatter encryption also applies to all Chatter fields when enabled.
Key limitations apply to Field-Level Encryption: encrypted fields cannot be used in SOQL WHERE or ORDER BY clauses (except with deterministic encryption for exact-match filtering), aggregate functions like MAX/MIN don't work, some AppExchange apps may not be compatible, and Einstein Lead Scoring isn't available with encrypted fields. Database Encryption avoids these query tradeoffs because it encrypts the entire database while preserving sort, filter, and query behavior.
Database Encryption, generally available since Spring '26, encrypts the entire Salesforce database - all standard and custom fields, metadata, and Apex - with AES-256 GCM encryption. Unlike Field-Level Encryption, it supports sorting, filtering, and querying without functional tradeoffs. Field-Level Encryption remains valuable for granular, field-by-field control, and the two capabilities complement each other. Note that the Cache-Only Key Service isn't supported with Database Encryption.
12
Abbreviations & Glossary
Abbreviations & Glossary
Reference guide for technical terms and abbreviations used throughout this article.
AES-Advanced Encryption Standard
API-Application Programming Interface
BYOK-Bring Your Own Key
CEK-Content Encryption Key
DEK-Data Encryption Key
EKM-External Key Management
FLE-Field-Level Encryption
FLS-Field-Level Security
GCM-Galois/Counter Mode
GDPR-General Data Protection Regulation
HIPAA-Health Insurance Portability and Accountability Act
HSM-Hardware Security Module
IV-Initialization Vector
JWE-JSON Web Encryption
KDF-Key Derivation Function
OWD-Organization-Wide Defaults
PCI-DSS-Payment Card Industry Data Security Standard
PII-Personally Identifiable Information
SOX-Sarbanes-Oxley Act
SOQL-Salesforce Object Query Language
SOSL-Salesforce Object Search Language
SSN-Social Security Number
UI-User Interface
Related Reading
Continue your Salesforce security and development learning journey with these related guides from my blog: