Foxcolab

Glossary

Key rotation

Definition

Key rotation: Replacing a cryptographic key with a new one, on a schedule or after an event such as a suspected leak or someone losing access, so that any single key protects less data. Rotation protects data from then on; it can't recall what was already exposed.

Also known asrekeyingre-keyingkey rolloverkey renewal

In short

Key rotation is replacing a cryptographic key with a new one, either on a schedule or because something changed: a key may have leaked, or someone who held it has lost access. It limits how much data any single key protects. In shared, end-to-end encrypted documents, rotation is what stops a removed person's old key from opening future edits. It can't take back what they already saw.

Key takeaways

  • Key rotation retires a key and puts a new one in its place.
  • NIST calls a key's allowed lifetime its cryptoperiod, and a compromised key's cryptoperiod ends at once.
  • Rotate on a schedule, after a suspected leak, and whenever someone who held the key loses access.
  • Rotation protects future data. Anything a former key holder already copied stays copied.
  • Everyone who keeps access must receive the new key, or they're locked out too.

Last reviewed 30 November 2026

Key rotation is replacing a cryptographic key with a new one and retiring the old one. You rotate on a schedule, or because something changed: a key might have leaked, or someone who held it lost access. NIST calls the span of time a key may be used its cryptoperiod, and says a well-chosen one "limits the amount of exposure if a single key is compromised" (SP 800-57 Part 1).

When to rotate#

  • On a schedule. Planned rotation caps how much data sits under any one encryption key.
  • After a suspected leak. NIST says a compromised key's cryptoperiod ends at once, and describes re-keying as the step used "when a key has been compromised."
  • When someone loses access. In a shared, end-to-end encrypted document, every collaborator's device holds the document key. Removing a person from the access list stops the server sending them anything, but their copy of the key would still open new content that reached them some other way. A new key closes that gap.

A worked example#

A finance team at example.com shares an encrypted budget with five people, including a contractor. When the contract ends, the owner removes him. Without rotation, he still holds a key that opens every future change. With rotation, the owner's device makes a new key, locks it for the four who remain and encrypts every later edit with it. His old key opens only what he could already read.

What short definitions miss#

Rotation doesn't reach backward. Anything a former key holder already saw, downloaded or copied stays with them. Rotation protects what comes next.

Old data still needs its old key. Re-encrypting everything on every rotation is slow, so well-designed systems keep earlier keys, locked under the new one, so history stays readable for the people who still belong.

Everyone who stays needs the new key. Rotation has to reach every remaining person and link. Anything it can't re-lock should stop working.

In Foxcolab#

Docs and Sheets rotate keys for you when access changes, and the new key is made on your device, so Foxcolab can't read it. In Docs, choose Remove access next to a person in the Share dialog, and Docs re-locks the document with a new key that only the people and links that still have access receive. Turn off link re-locks it too, and you can re-lock at any time under Advanced with Re-lock. In Sheets, removing someone, or letting their access end on its Access until date, gives the spreadsheet a new key, confirmed with New encryption key in place.

Read Share a document and add comments in Docs, or create a free account.

Keep exploring

All terms

Foxcolab

Private work tools, without the ads.

Mail, files, documents, spreadsheets and meetings in one account. Files, documents and spreadsheets are end-to-end encrypted.

Jump to