What Is Encryption?
Encryption converts data into unreadable ciphertext that only authorized parties can decrypt.
How Encryption Works: The Technical Foundation
Modern encryption relies on mathematical problems that are computationally easy to perform in one direction and computationally infeasible to reverse without the key. The two fundamental categories are symmetric and asymmetric encryption, each with distinct properties and applications.
Symmetric Encryption
Symmetric encryption uses the same key to both encrypt and decrypt data. The sender and receiver must both possess the same key, which must be shared through a secure channel before encrypted communication can begin. The security of the communication depends entirely on the confidentiality of the shared key. The primary advantage of symmetric encryption is performance — symmetric algorithms are orders of magnitude faster than asymmetric alternatives and are used for bulk data encryption. AES (Advanced Encryption Standard) with 256-bit keys is the current standard for symmetric encryption and is used to protect data at rest in storage systems, databases, and encrypted file systems.
Asymmetric Encryption
Asymmetric encryption uses mathematically linked key pairs: a public key that can be freely shared and a private key that must be kept secret. Data encrypted with a public key can only be decrypted by the corresponding private key. This eliminates the key distribution problem of symmetric encryption — you can share your public key with anyone without compromising security. RSA and elliptic curve cryptography (ECC) are the dominant asymmetric algorithms. Asymmetric encryption is computationally expensive and is rarely used for bulk data encryption; instead, it is used to securely exchange symmetric keys and to create digital signatures.
Where Encryption Is Applied: In Transit, At Rest, and In Use
Encryption In Transit
Data in transit — moving across networks — is protected by TLS (Transport Layer Security), the protocol underlying HTTPS. When you connect to a website over HTTPS, your browser and the web server negotiate a TLS connection that encrypts all data exchanged during the session. TLS uses asymmetric cryptography to authenticate the server's identity and exchange a session key, then uses that symmetric session key for the actual data encryption. Email encryption, VPN tunnels, and API communications use similar hybrid approaches combining asymmetric key exchange with symmetric data encryption.
Encryption At Rest
Data at rest — stored in databases, file systems, object storage, and backup systems — should be encrypted to protect against unauthorized access if storage media is lost, stolen, or improperly decommissioned. Full-disk encryption protects laptop and workstation data if a device is lost — BitLocker on Windows and FileVault on macOS are the standard implementations. Database encryption protects data if database files are accessed directly, bypassing application authentication controls. Cloud storage encryption, provided natively by AWS, Azure, and GCP, encrypts object storage and database data at rest by default, though the specific encryption configuration and key management approach varies significantly.
Encryption In Use
The newest frontier of encryption addresses data while it is being actively processed in memory — historically the most difficult environment to protect because data must be decrypted to be processed. Homomorphic encryption enables computation on encrypted data without decrypting it. Secure enclaves create isolated, attestable execution environments where sensitive computation can occur without exposure to the host operating system. These technologies are emerging capabilities in enterprise environments but are not yet broadly deployed in mid-market organizations.
Encryption in Practice: What It Protects and What It Doesn't
What Encryption Definitively Protects
Encryption protects data confidentiality from parties who do not possess the decryption key. A laptop with full-disk encryption lost at an airport does not expose its contents to whoever finds it. A database containing 10 million customer records that is exfiltrated by an attacker who bypasses application controls but cannot access encryption keys exposes ciphertext rather than readable personal data. An email encrypted end-to-end cannot be read by the email provider, network intermediaries, or attackers who intercept it in transit.
What Encryption Does Not Protect
Encryption does not protect against attackers who compromise the systems that hold the decryption keys. An attacker with domain administrator privileges in a Windows environment can access the BitLocker recovery keys stored in Active Directory and decrypt any laptop in the fleet. An attacker who compromises the application can access data after it has been decrypted for processing — the application sees plaintext because it must to function. Ransomware does not defeat encryption; it adds another layer of encryption on top of existing data, making the attacker the new keyholder.
Key Management: The Critical Weakness
The security of encrypted data depends entirely on the security of the encryption keys. Encrypting data with a key stored in the same location as the data provides minimal protection. Key management systems — hardware security modules (HSMs) for on-premises environments and cloud key management services like AWS KMS and Azure Key Vault for cloud environments — provide the secure key storage, access control, and audit logging that make encryption operationally meaningful rather than theatrical.
Frequently Asked Questions
What is the difference between encryption at rest and in transit?
Encryption at rest protects stored data — databases, file systems, backups, archived files. Encryption in transit protects data moving across networks — HTTPS web traffic, encrypted email, VPN tunnels. The two address different threat models. At-rest encryption protects against unauthorized access to storage media (lost laptops, stolen backups, improperly decommissioned hardware). In-transit encryption protects against network interception (Wi-Fi eavesdropping, man-in-the-middle attacks, ISP-level surveillance). Most regulated data should have both.
Does encryption defeat ransomware?
No. Ransomware adds a layer of attacker-controlled encryption on top of your existing data, making the attacker the new keyholder. Your existing encryption keys do not help if the entire system — including the keys — has been encrypted by ransomware. The protection against ransomware is backup architecture (immutable, offline, tested), not data encryption. Encryption protects against the data confidentiality dimension of breach (preventing the attacker from reading exfiltrated data); ransomware operates against availability (preventing you from reading your own data).
What is end-to-end encryption?
End-to-end encryption (E2EE) means data is encrypted on the sender's device and only decrypted on the receiver's device — no intermediary (email provider, messaging platform, network operator) has the keys to read the content. Signal, WhatsApp, iMessage, and ProtonMail use E2EE for messaging. The architectural property of E2EE is that the service provider operating the platform cannot read user content even if compelled by legal process — because the provider does not possess the keys. The trade-off is that key loss (lost device, forgotten password) results in permanent data loss because no central authority can recover the content.
Is AES-256 quantum-resistant?
Probably yes, at least for now. AES-256 with proper key management is generally considered secure against currently anticipated quantum computer capabilities. The quantum threat to current cryptography is primarily against asymmetric encryption — RSA and elliptic curve cryptography — which would be broken by sufficiently large quantum computers using Shor's algorithm. NIST has standardized post-quantum cryptographic algorithms (ML-KEM, ML-DSA) for the asymmetric category; symmetric encryption like AES-256 is expected to remain secure with key size increases rather than algorithm replacement.
What is key escrow?
Key escrow is the practice of maintaining a backup copy of encryption keys with a trusted third party — typically the organization itself for enterprise scenarios — to enable data recovery if the primary key is lost. BitLocker recovery keys stored in Active Directory are a form of key escrow. The trade-off is between recoverability and security: key escrow protects against key loss but creates additional attack surface (the escrow location is itself a target for attackers seeking the keys).
Why does HTTPS matter for our website?
HTTPS encrypts all data exchanged between users and your website, preventing network intermediaries from reading or modifying content. The practical implications: user passwords and credentials are protected during login, user data submitted through forms is protected in transit, search engines and browsers signal HTTPS-only as a trust requirement, and HTTP-only sites are blocked or warned-against by modern browsers. HTTPS is now the baseline standard for any production website; HTTP-only sites should be considered actively non-compliant with modern web standards.
How does encryption affect data breach notification?
Many breach notification laws — including state laws under HIPAA and CCPA — exempt breaches of encrypted data from notification requirements, on the theory that ciphertext exfiltrated by an attacker who does not possess the decryption key does not represent meaningful data exposure. The safe-harbor exemptions are typically conditional on the encryption keys not also being compromised and on the encryption being deployed with reasonable key management practices. Encryption with poor key management may not qualify for the breach-notification safe harbors that properly-implemented encryption provides.
Real-World Example: Anthem Health Breach — 78 Million Records, No Encryption
The 2015 Anthem health insurance breach exposed 78.8 million records — names, Social Security numbers, dates of birth, addresses, employment information, and income data. The attacker gained access through compromised credentials and extracted data from Anthem's data warehouse. The data was not encrypted at rest. Anthem's position was that encryption was not required by HIPAA for data warehouse environments — technically accurate. The breach cost Anthem $115 million in settlements and established the precedent that reasonable data security expectations extend beyond minimum compliance requirements. Had the data warehouse been encrypted with properly managed keys, the exfiltrated data would have been unreadable ciphertext rather than 78.8 million usable identity records.
Of data breaches would have had significantly reduced impact if the stolen data had been encrypted at rest. Encryption is the last line of defense when every other control fails.