Glossary · Security

Key Management

Key management is the practice of generating, storing, rotating, distributing and retiring cryptographic keys securely throughout their lifecycle.

Updated October 6, 2026

Key management covers every stage of handling cryptographic keys: generating, storing, distributing, rotating, backing up and destroying them. Its goal is to keep keys secret and available only to authorized systems.

Why it matters

Strong algorithms are useless if keys leak or get lost. Good practice uses hardware security modules or cloud key management services, separates keys from the data they protect, restricts and logs access, and rotates keys on a schedule or after suspected compromise.

Example

A company keeps encryption keys in a managed key service. Applications request decrypt operations through an API with logged permissions, and keys rotate annually, so no developer ever sees a raw master key.

Common mistakes

  • Hardcoding keys in source code or configuration files in repositories.
  • Never rotating keys or having no revocation plan.
  • Having no backup of keys, making encrypted data permanently unrecoverable.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.