Encryption Keys: The Small Secrets Your Files Depend On
Two people can use the same encryption software and still need different keys to open their files. An encryption key is a data value that helps determine how information is transformed into a protected form.
The original information is plaintext, and the encrypted result is ciphertext. Decryption reverses the process using the appropriate key; possession of the file alone shouldn't be enough to read its contents.
A key isn't necessarily the password you type
A password may be an input from which software calculates a key. This process is called key derivation, and password-based methods deliberately add work to make repeated guessing more expensive.
Mozilla's key-derivation documentation describes that distinction. A weak password can still be guessed; deriving a key doesn't turn an obvious password into a good secret.
Other keys are generated by software without someone choosing a password. They need a source of randomness designed for security, rather than keyboard mashing or a predictable sequence of numbers.
Which key has to stay secret?
With symmetric encryption, the same secret key is used to encrypt and decrypt. Anyone given that key may be able to read the information it protects.
Public-key encryption uses a related pair. You can share the public key so people can encrypt information for you, while keeping the corresponding private key secret for decryption.
Some systems establish a shared secret through a key-agreement process instead of sending that secret directly. The system also needs to check who it's communicating with; a key agreement alone doesn't prove someone's identity.
These are different jobs within cryptography, the mathematics used to protect information. The National Institute of Standards and Technology's key-management guide distinguishes keys by their purpose and the protection they require.
Why Cloudflare Points a Camera at a Wall of Lava Lamps
Bigger numbers need context
Key length is measured in bits, values that can each be zero or one. A byte contains eight bits, so a 128-bit key takes up 16 bytes.
The Advanced Encryption Standard, or AES, specifies keys of 128, 192 or 256 bits. Its method uses those keys with the same publicly documented rules.
Don't rank different encryption methods by key length alone. They use different mathematics, and a longer key in one family isn't automatically stronger than a shorter key in another.
- Make a stolen password useless without the key in your hand.
- Sign in with a tap instead of typing a code.
- Protect Google, Microsoft, Apple and more than 1,000 other accounts.
A key needs a life beyond its creation
Key management covers generating, protecting, using, replacing and eventually retiring keys. OWASP, an application-security nonprofit, calls for limiting access and planning for backup and recovery throughout that life.
Losing the only usable decryption key and every recovery route can make encrypted files unrecoverable. Keeping the files safe and keeping a usable recovery route are separate responsibilities.
Key rotation means replacing a key used for ongoing work. It doesn't automatically change data that was encrypted with an older key.
As OWASP's storage guidance explains, a system may need to re-encrypt old data or retain older keys so it can still read that data. Older backups can depend on those keys too.
Replacement should account for suspected exposure, how much the key has been used and the system's requirements. A calendar reminder alone can't decide whether a key is still suitable.
Before retiring a key, establish which files and backups still depend on it. Otherwise, a routine cleanup can leave you with intact data that nobody can open.
A Symmetric Key Has a Life Beyond the Encrypted File

Private Keys: The Secret Half Has Different Jobs

Split Keys: Sharing Control Without Sharing the Whole Secret

QUOTE:
"Amateurs hack systems, professionals hack people."
