What is data encryption? How it works, and where it fails in document workflows
For teams that store or send sensitive documents: how encryption works, what at rest and in transit cover, the rules that expect it, and what to ask a vendor.
Key takeaways
- Data encryption turns readable data into ciphertext with an algorithm and a key; only someone with the right key can turn it back.
- Symmetric encryption (AES) uses one key and handles bulk data; asymmetric encryption (RSA, ECC) uses a key pair for key exchange and signatures. TLS uses both.
- Encryption at rest protects stored files and in transit protects data on the network, but data is decrypted while it's in use, so access controls and audit logs have to cover that window.
- Rules and standards expect it: HIPAA treats it as an addressable safeguard, PCI DSS requires stored card numbers to be unreadable, the FTC Safeguards Rule requires it for customer data, and GDPR names it as a security measure.
- Encryption is only as strong as key management: who holds the keys, where they're stored and when they're changed.
On this page
- What is data encryption?
- How encryption algorithms work
- Symmetric vs asymmetric encryption
- Encryption at rest vs in transit
- Why businesses encrypt sensitive data
- Common encryption standards and protocols
- Key management fundamentals
- Where encryption fails in document workflows
- How to evaluate vendor encryption claims
- The bottom line
- Frequently asked questions
Data encryption converts readable data, called plaintext, into unreadable ciphertext using an algorithm and a secret key, so only someone with the right key can turn it back. It protects files while they're stored (at rest) and while they move across networks (in transit), so a stolen disk or an intercepted upload of tax returns reveals nothing useful.
This guide covers how encryption algorithms work, symmetric vs asymmetric encryption, at rest vs in transit, the rules that expect encryption, key management, and where encryption leaves gaps in document workflows.
What is data encryption?#
NIST defines encryption as the cryptographic transformation of data into ciphertext, which hides its meaning; the reverse is decryption. Think of a lockbox: the algorithm is the lock's design and the key is what opens it. A strong lock with the key left under the doormat protects nothing.
How encryption algorithms work#
An encryption algorithm takes plaintext and a key and outputs ciphertext that looks like random noise. Its strength comes from the complexity of its operations and the length of its key. AES, the Advanced Encryption Standard, runs data through repeated rounds of substitution and permutation: 10 rounds with a 128-bit key, 12 with a 192-bit key and 14 with a 256-bit key.
Key length matters because every extra bit doubles the number of possible keys. A 256-bit key has 2^256 possibilities, far more than any brute-force attack could try with today's computers.
Symmetric vs asymmetric encryption#
Most systems use both. Symmetric encryption uses one shared key to encrypt and decrypt: it's fast, so it handles bulk data, but both sides need the same secret. Asymmetric encryption uses a key pair: a public key anyone can use to encrypt, and a private key only the owner holds to decrypt.
| Type | Speed | Keys | Common uses |
|---|---|---|---|
| Symmetric (AES) | Fast | One shared key | File storage, database encryption, bulk data |
| Asymmetric (RSA, ECC) | Slower | Public and private key pair | Key exchange, digital signatures, TLS handshakes |
A TLS connection combines them: public-key cryptography sets up a shared session key, then symmetric encryption carries the data.
Encryption at rest vs in transit#
Where data sits decides which control applies, and there's a third state that standard encryption doesn't cover.
At rest
Stored data: files on disk, database records, backups. Full-disk encryption covers whole volumes; file- or field-level encryption protects specific values.In transit
Data moving between systems. TLS is the standard for web traffic and APIs, and stops eavesdropping and tampering on the way.In use
Data on a review screen or in an API response is decrypted so people and systems can work with it. Access controls and audit logs protect this window.
Why businesses encrypt sensitive data#
Encryption keeps data confidential even after a breach, and several rules expect it for the data in business documents:
- HIPAAEncrypting electronic health information is an "addressable" safeguard: implement it, or document why not and use an equivalent measure (45 CFR 164.306 and 164.312). Data encrypted to HHS guidance, with the key kept safe, isn't "unsecured," so losing it doesn't trigger breach notification.
- PCI DSSCard numbers must be unreadable wherever they're stored, and sent over open, public networks only with strong cryptography (requirements 3.5.1 and 4.2.1, PCI SSC).
- FTC Safeguards RuleNon-bank financial institutions, such as mortgage lenders, must encrypt customer information at rest and in transit over external networks, or use approved compensating controls (16 CFR 314.4).
- GDPREncryption is named as a security measure (Article 32), and if breached data was encrypted, you may not have to tell the people affected (Article 34) (GDPR text).
In January 2025 HHS proposed making encryption of electronic health information required rather than addressable; as of September 2026 the rule isn't final. More on health data in what HIPAA compliance means for document teams.
Common encryption standards and protocols#
A handful of standards cover most business systems:
| Standard | What it is | Used for | Current guidance |
|---|---|---|---|
| AES-256 | Symmetric cipher with a 256-bit key (NIST FIPS 197) | Files, databases, backups | Widely used for sensitive stored data |
| RSA | Asymmetric algorithm | Key exchange, digital signatures | 2048-bit keys are acceptable through 2030; NIST's minimum rises to 3072-bit in 2031 |
| TLS 1.3 | Protocol for data in transit | Web traffic, APIs, uploads | The current version; TLS 1.0 and 1.1 are deprecated |
| SHA-256 | Hash function, not encryption | Integrity checks, file fingerprints | One-way: data can't be recovered from a hash |
Two changes are worth watching. TLS 1.3 dropped legacy algorithms and made forward secrecy standard, so a vendor that still accepts TLS 1.0 or 1.1 deserves questions. And in August 2024 NIST published its first post-quantum encryption standards (FIPS 203, 204 and 205), built to resist future quantum computers, and urged organizations to start adopting them.
Key management fundamentals#
Encryption is only as strong as key management, and this is where implementations fail in practice.
Envelope encryption is the usual design. A data encryption key (DEK) encrypts the data; a key encryption key (KEK) encrypts the DEK and stays in a key management service (KMS) or hardware security module (HSM) with tight access controls. An attacker who breaches storage but not the key service finds only wrapped keys they can't use. HHS makes the same point: keep keys apart from the data they protect.
Key rotation replaces keys on a schedule to limit the damage a compromised key can do. There's no universal interval: NIST suggests a cryptoperiod for each key type, such as up to 2 years for a symmetric key encrypting new data, and PCI DSS requires keys to be changed at the end of the cryptoperiod you define.
When you evaluate vendors, ask about key custody: who can use the decryption keys, what logs record key use, and whether you can bring your own keys (BYOK).
Where encryption fails in document workflows#
Encryption doesn't protect data at every moment. These are the usual gaps:
Temporary files and caches
A document encrypted in storage may be decrypted into a temp folder for OCR. If that folder isn't secured and wiped, the plaintext stays there.Previews and thumbnails
A system may render an unencrypted thumbnail of an encrypted file, and the thumbnail is readable.Exports and integrations
Once data syncs to another system or downloads as a spreadsheet, that system's controls decide what protects it.Logs and debug output
A debug log can capture API payloads, customer data included, in plain text.
That's why encryption works alongside access controls, audit trails, data minimization and retention rules, not instead of them.
How to evaluate vendor encryption claims#
Vendors often promise "bank-grade" or "military-grade" encryption. Ask what's behind it:
| Question | Why it matters |
|---|---|
| Which algorithms and key lengths do you use? | Confirms current standards, such as AES-256 and TLS 1.2 or 1.3 |
| Where are the keys stored, and who can use them? | Shows key custody and separation of duties |
| Can we bring our own keys (BYOK)? | Signals a mature key management setup |
| How often do you change keys? | Shows a defined cryptoperiod, not an ad hoc process |
| Can you share a current SOC 2 Type 2 report? | Shows an independent auditor tested the vendor's security controls over a period |
Also ask about scope: backups, logs, temporary files and derived data such as thumbnails and extracted fields. For how to read the report itself, see what SOC 2 compliance tells you about a vendor.
Docsumo, an intelligent document processing platform, encrypts data in transit with TLS and at rest with AES-256, offers role-based access, single sign-on and multi-factor authentication, is SOC 2 Type 2 audited and ISO/IEC 27001:2022 certified, supports HIPAA and GDPR compliance with a BAA and DPA available, and doesn't use customer data to train shared or third-party models. More is on its security page.
The bottom line#
Encryption makes stolen or intercepted data useless without the key, which is why rules from HIPAA to PCI DSS expect it. It doesn't protect data while it's in use, and it's only as good as the key management behind it, so pair it with access controls and audit logs, and ask vendors specific questions instead of accepting "bank-grade."
Book a demo to go through Docsumo's security with your team, or start a free trial.
Frequently asked questions#
Does encrypting data guarantee it can't be stolen?
No. Encryption makes stolen data unusable without the key, but it doesn't prevent theft. An attacker with valid credentials can read decrypted data through the normal application, so encryption protects against storage breaches and interception, not misuse of authorized access.
What is the difference between encryption and hashing?
Encryption is reversible with the right key; hashing is one-way. Use encryption when the original data must be read again, and hashing when you only need to verify or match data, such as a password or a document's fingerprint.
What is AES-256 encryption?
AES-256 is the Advanced Encryption Standard with a 256-bit key, a symmetric algorithm specified by NIST in FIPS 197. It runs data through 14 rounds of substitution and permutation and is widely used for stored files, databases and backups.
What is the difference between encryption at rest and in transit?
Encryption at rest protects stored data, such as files on disk, database records and backups. Encryption in transit protects data moving between systems, usually with TLS. Sensitive documents need both, plus access controls for when data is decrypted and in use.
How often do encryption keys need to be rotated?
There's no single required interval. NIST's key management guidance suggests a cryptoperiod for each key type, such as up to 2 years for a symmetric key encrypting new data, and PCI DSS requires keys to be changed at the end of the cryptoperiod you define. Rotate at once if a key may have been exposed.
Sources
- NIST CSRC Glossary: encryption
- NIST FIPS 197 (updated 2023): Advanced Encryption Standard (AES)
- NIST SP 800-57 Part 1 Rev. 5: Recommendation for key management (cryptoperiods, security strength time frames)
- NIST: First 3 finalized post-quantum encryption standards (August 2024)
- RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3
- RFC 8996: Deprecating TLS 1.0 and TLS 1.1
- 45 CFR 164.306: HIPAA Security Rule, required and addressable implementation specifications (Cornell LII)
- 45 CFR 164.312: HIPAA technical safeguards, encryption (Cornell LII)
- HHS: Guidance to render unsecured protected health information unusable, unreadable or indecipherable
- Federal Register: HIPAA Security Rule to strengthen the cybersecurity of electronic PHI (proposed rule, January 6, 2025)
- PCI Security Standards Council: PCI DSS v4.0 SAQ D for Merchants (requirements 3.5.1, 3.7.4 and 4.2.1)
- PCI Security Standards Council: PCI DSS v4.0.1 published (no added or deleted requirements)
- 16 CFR 314.4: FTC Safeguards Rule, elements of an information security program (Cornell LII)
- Regulation (EU) 2016/679 (GDPR), Articles 32 and 34
First published . Last updated .