Key Takeaways
- HIPAA lists encryption of ePHI at rest and in transit as addressable: you must implement it when reasonable and appropriate, or document an equivalent alternative.
- A January 2025 HHS proposed rule would make encryption required with limited exceptions; it is still a proposal, so verify its status before citing it as law.
- PHI encrypted in line with HHS guidance (NIST SP 800-111 at rest, NIST SP 800-52 for TLS) is secured data and falls under the breach notification safe harbor, provided the key was not compromised.
- Encrypt every copy of PHI, including backups, logs, exports and mobile storage, and combine storage encryption with field-level encryption for the most sensitive attributes.
- Keep keys in a managed KMS or HSM, separate from the data, with rotation, logging and separation of duties.
Is Your HealthTech Product Built for Success in Digital Health?
.avif)
PHI data encryption is the practice of converting protected health information into ciphertext, both while it is stored and while it moves between systems, so that anyone who obtains the data without the right key cannot read it. Under HIPAA it sits in the technical safeguards of the Security Rule, and it also decides whether a lost laptop or a leaked database backup turns into a reportable breach.
This guide is written for CTOs and engineering leads building digital health products. It covers what the regulation actually says (including the January 2025 proposal to make encryption mandatory), the conditions HHS sets for breach safe harbor, and how to implement encryption at rest, in transit and in key management in a way that survives an audit.
What HIPAA requires for PHI data encryption
The HIPAA Security Rule names encryption in two places. The access control standard includes "encryption and decryption" at 45 CFR 164.312(a)(2)(iv), which covers electronic PHI at rest. The transmission security standard includes "encryption" at 164.312(e)(2)(ii), which covers ePHI sent over electronic networks. Both are labeled addressable implementation specifications, not required ones.
Addressable does not mean optional. Under 164.306(d)(3), a covered entity or business associate must assess whether encryption is reasonable and appropriate for its environment. If it is, you implement it. If it is not, you must document why and implement an equivalent alternative measure, or document why no measure is needed. In practice, for a cloud-hosted health app, it is very hard to write a defensible justification for leaving PHI unencrypted, because managed databases, object storage and load balancers offer encryption as a configuration setting. Regulators know this, and OCR enforcement actions have repeatedly cited missing encryption on lost or stolen devices.
The 2025 proposal to make encryption required
In January 2025, HHS published a Notice of Proposed Rulemaking (NPRM) to update the Security Rule. Among other changes, it proposes removing the distinction between required and addressable specifications and requiring encryption of ePHI at rest and in transit, with limited exceptions. It also proposes a written technology asset inventory, a network map showing how ePHI moves, and stricter expectations for risk analysis and multi-factor authentication.
The NPRM is a proposal. Check the HHS Security Rule page for its current status before you cite it as law. From an engineering standpoint, though, the direction is clear: if your architecture already encrypts every copy of PHI and you can show it, a final rule along these lines costs you documentation work, not a re-platforming project.
Who the obligation applies to
The Security Rule applies to covered entities (providers, health plans, clearinghouses) and to business associates that create, receive, maintain or transmit ePHI on their behalf. A SaaS vendor that stores patient data for a clinic is a business associate and carries the same encryption analysis. If you are not sure whether the data your app collects is PHI in the first place, start with our guide on what counts as PHI under HIPAA.
Encryption and the breach notification safe harbor
The strongest business case for encryption comes from the Breach Notification Rule rather than the Security Rule. Notification duties apply to a breach of unsecured PHI. HHS guidance defines secured PHI as data rendered unusable, unreadable or indecipherable to unauthorized persons, and it names two methods: encryption and destruction.
For encryption to qualify, the HHS guidance points to specific NIST publications:
- Data at rest: processes consistent with NIST SP 800-111, Guide to Storage Encryption Technologies for End User Devices.
- Data in motion: processes that comply, as appropriate, with NIST SP 800-52 (TLS implementations), SP 800-77 (IPsec VPNs) or SP 800-113 (SSL VPNs), or others that are FIPS 140 validated.
- Keys: the decryption key must not have been breached along with the data. HHS states that keys should be kept on a separate device or at a location separate from the data they protect.
The practical consequence is significant. If an encrypted laptop is stolen and the key was not compromised, there is generally no reportable breach. If the same laptop was unencrypted, you face individual notifications within 60 days of discovery, notice to HHS, and, when more than 500 residents of a state or jurisdiction are affected, notice to prominent media outlets. A breach affecting 500 or more individuals also appears on the public OCR breach portal.
The key condition is the one teams miss most often. Encryption with a key stored in the same repository, the same container image or an environment file on the same server does not give you the protection you think it does, because whoever obtains the data obtains the key too.
Encrypting PHI at rest
Encryption at rest covers every place PHI is written down, not just the primary database. When we review health platforms, the gaps are rarely in the main database, which is usually encrypted by default on managed cloud services. They are in the copies: nightly exports to a reporting bucket, debug logs that capture request bodies, a search index, a message queue with a long retention window, analytics pipelines, CSV files on an analyst's laptop, and cached data inside mobile apps.
Start with an inventory of every system that stores PHI, then choose a layer of encryption for each. The layers are not interchangeable: each protects against a different threat.
For most products, a sensible baseline is storage-level encryption on every datastore plus field-level encryption for the most sensitive attributes. Use AES-256 (AES-128 is also approved by NIST, but AES-256 is the common expectation in security questionnaires) and use cryptographic modules validated under FIPS 140-2 or FIPS 140-3. Major cloud KMS offerings and managed database services publish their FIPS validation status. Do not write your own cryptography: use the platform's encryption features or a vetted library such as an envelope encryption SDK.
Field-level encryption has a design cost. Encrypted fields cannot be indexed or searched directly, so plan for it: store a keyed hash (HMAC) alongside a field you need to look up by exact match, and keep fields you need to sort or aggregate in a separate, de-identified form where possible. Mobile apps need their own treatment: rely on the platform keystores (iOS Keychain and Data Protection, Android Keystore), avoid writing PHI to shared storage, and assume the device can be lost.
Encrypting PHI in transit
Every network hop that carries PHI should be encrypted, including traffic inside your own cloud network. The old model of encrypting only at the public edge and trusting the internal network does not match how modern breaches happen, and the 2025 NPRM's network mapping proposal suggests auditors will look at internal flows too.
NIST SP 800-52 Rev. 2 is the reference HHS points to for TLS. It requires TLS 1.2 at minimum for government servers and calls for support of TLS 1.3. In practice, for a health application this means:
- Public endpoints: TLS 1.2 or 1.3 only, with TLS 1.0, 1.1 and weak cipher suites disabled, HSTS enabled, and certificates renewed automatically.
- Service-to-service traffic: TLS between the load balancer and application containers, and mutual TLS (mTLS) between internal services where you can, often through a service mesh.
- Database connections: enforce TLS at the database server (for example, requiring SSL connections in PostgreSQL), not just in the client connection string.
- Integrations: FHIR APIs over HTTPS, HL7 v2 over a VPN or TLS-wrapped MLLP rather than plain MLLP, SFTP instead of FTP for file drops, and signed, HTTPS-only webhooks.
- Email and messaging: standard email is not a reliable channel for PHI. Use a secure messaging feature in your product or an email service that enforces encryption, and note that HIPAA allows sending unencrypted email to a patient who has been warned of the risk and still requests it.
Mobile apps add one more consideration. Platform defaults such as App Transport Security on iOS already block plain HTTP, but some teams add certificate pinning for API calls that carry PHI. Pinning raises the bar against interception on compromised networks, at the cost of a more careful certificate rotation process.

Key management and a step-by-step implementation plan
Encryption is only as strong as the handling of its keys. NIST SP 800-57 is the standard reference for key management, and its principles translate into a few concrete rules for a health platform:
- Use a managed key service or HSM. AWS KMS, Google Cloud KMS and Azure Key Vault are HIPAA eligible services when used under the provider's BAA. They keep master keys in hardware security modules and never expose them to your application.
- Use envelope encryption. The KMS master key encrypts data keys, and data keys encrypt the data. This lets you rotate master keys without re-encrypting every record at once.
- Separate duties. The people who administer the database should not be the people who can use the decryption keys, and production key permissions should be granted to service roles, not individual engineers.
- Rotate and log. Enable automatic rotation, log every key use, and alert on unusual decrypt volume. Key access logs are also useful evidence during a breach risk assessment.
- Never store keys with data. No keys in source code, container images or unencrypted configuration files. Use the secrets manager your cloud provides.
Implementation steps
- Map PHI flows. List every system that stores or transmits PHI, including logs, backups, analytics and third-party tools. This is also the asset inventory and network map the NPRM proposes.
- Run or update your risk analysis. Record where encryption is applied and, for any place it is not, the documented reason and the compensating control. This is how you satisfy the addressable standard today.
- Turn on platform encryption everywhere. Enforce it with infrastructure as code and policy checks so that a new bucket or database cannot be created unencrypted. Our open-source Terraform HealthStack is one example of this approach.
- Add field-level encryption for the highest-risk attributes and design the search and reporting workarounds up front.
- Harden transport. Set TLS policies on load balancers, require TLS on database connections, and secure every integration channel.
- Sign BAAs with every vendor that touches PHI, including your cloud provider, and confirm which of its services are HIPAA eligible.
- Test and keep evidence. Scan TLS configurations, verify encryption settings automatically, test key rotation and backup restores, and store the results. Auditors and enterprise customers will ask for proof, not intentions.
Encryption is one control among many. Access controls, audit logging, MFA and workforce training still matter, and an encrypted database does not help if an attacker logs in with stolen credentials. For the broader picture, see our HIPAA-compliant software development checklist.
Build PHI encryption into your platform from day one
Retrofitting encryption into a live product means migrating data, rewriting queries and re-testing integrations under deadline pressure, usually right before an enterprise security review. Designing it in from the start costs far less: encrypted storage by default, field-level encryption where it matters, enforced TLS on every hop, and key management you can explain to an auditor.
Momentum builds HIPAA-ready health software and infrastructure for digital health companies, from architecture and risk analysis support to production deployment. If you are planning a new product or preparing for a security audit, talk to our team about how to handle PHI encryption in your stack.






