Skip to content
Web Design & Development

A Practical Guide to Encrypting Sensitive Data

Protecting data at rest and in transit with encryption, and managing the keys that make it work.

Marcus Adeyemi Technical Director 2 min read 22 views
A Practical Guide to Encrypting Sensitive Data

What is at stake

Encryption limits breach impact, but poor key management makes it decorative rather than protective.

The playbook

  1. Use TLS everywhere, including internal traffic
  2. Encrypt sensitive fields as well as whole disks
  3. Store keys in a managed key service
  4. Plan key rotation before you need it
  5. Limit who can access decryption keys

Where it goes wrong

Avoid:

  • Keys stored beside encrypted data
  • Custom cryptography
  • Encryption with no rotation plan
  • Assuming disk encryption covers application risks
What to do and what to avoid with encrypting sensitive data, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Encrypting Sensitive Data
MeasureFigure
In transitTLS protects data moving between systems
At restdatabase and disk encryption protect stored data
Key managementkeys must be stored separately from the data
Rotationkeys should be rotatable without data loss

Getting outside help

When to hand it over: Bring in help when applications hold sensitive personal data.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Web Design & Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Marcus Adeyemi

Builds and maintains the web work. Writes about front-end architecture, performance, accessibility and the unglamorous parts of keeping a site alive.

Keep reading

More in Web Design & Development