Encryption key management is the software and hardware that create, store, hand out, change and destroy the keys used to encrypt a company's data. Encryption scrambles data so that only the holder of the right key can unscramble it. So encrypted data is only as safe as its keys. If a key is stored next to the data, a thief who takes the data takes the key too.
The most important keys are kept in a hardware security module (HSM). An HSM is a tamper-resistant device, often a card or a box in a data centre, that stores keys and carries out encryption inside itself. The key never leaves it in readable form. Key management software runs on top of the HSM, and decides which application may use which key.
Here is a typical case. A payroll company in Mysuru keeps the salary and bank details of 2 lakh employees of its client companies, in 40 databases. Each database is encrypted with its own key, called a data key. The data keys are not stored in readable form. Each one is itself encrypted with a master key, which stays inside the HSM. Encrypting keys with another key in this way is called envelope encryption.
When the salary application starts, it sends its encrypted data key to the key manager. The key manager checks that this application is allowed to use this key. It decrypts the data key inside the HSM and returns it to the application, which keeps it only in memory. Every use of every key is recorded.
Keys are also replaced on a schedule. This is called rotation. The payroll company rotates its master key every 12 months, so that a key stolen in the past cannot unlock anything encrypted after the change. And when a client company leaves, the payroll company deletes every copy of that client's data key, including the encrypted copies kept with backups. At once, every copy of that client's data, including old backups, becomes unreadable. This is called crypto-shredding.
In the cloud, a company can create its keys in its own key manager and keep control of them, instead of leaving them only with the cloud provider. This is called bring your own key.
Keys are also used in certificates, the files that let machines prove who they are. These are handled by certificate lifecycle management. Enterprise digital rights management asks the key manager for the key to each protected file. With confidential computing, the key manager releases a key only to code that it has checked. A change is also coming: post-quantum cryptography. Some of today's key types will have to be replaced by new algorithms that future quantum computers cannot break, and the key manager is where that replacement is carried out.