What is an encryption key? It is the secret ingredient in encryption. An algorithm such as AES is public and the same for everyone; the key is a long random number that makes your encrypted data different from everyone else's. Without the right key, encrypted data is just noise. With it, the original message comes back in an instant.
Key, algorithm and password are different things
Cryptographers assume attackers know exactly which algorithm is in use, so all the secrecy rests on the key. A password is something a person remembers; a key is usually generated by the device and far too long to memorize. When an app does start from a password, it runs it through a deliberately slow key-derivation function to turn it into a proper key.
How big is a key?
Keys are measured in bits. A 128-bit key has about 340 trillion trillion trillion possible values, far beyond what any computer can try one by one, and 256-bit keys are common for extra margin. Public-key systems need different sizes: an elliptic-curve key of 256 bits gives roughly the strength of a 3,072-bit RSA key.
Common types of encryption keys
- Symmetric keys: one key both encrypts and decrypts. They are fast and protect the bulk of data, for example with AES.
- Public and private key pairs: used to agree secrets and create signatures between people who have never shared a key.
- Session and message keys: short-lived keys made for one connection or one message, then deleted.
- Long-term identity keys: keys that identify a device over months or years.
Where an encryption key lives, and why keys rotate
Phones keep sensitive keys in protected storage, such as the Android Keystore or the iOS Keychain, which ties them to the device and its lock screen. Good systems also rotate keys, replacing them regularly so that one leaked key exposes as little as possible. If a key is lost and there is no backup, the data it protected is usually gone for good.
In messaging, a notice that a contact's security keys have changed usually means they reinstalled the app or switched phones. It is worth a quick check with them if you were not expecting it.
Encryption key in Foxcolab
Foxcolab's personal one-to-one chats use Signal Protocol keys: a long-term identity key pair generated on your phone when you sign up, pre-keys that let others start a session with you, and short-lived message keys that change with every message. Together they protect the text of personal chats between people. Group chats, Teams, Spaces and chats with business accounts are encrypted in transit (TLS), and photos and files are sent over encrypted connections.
How Foxcolab handles securityFrequently asked questions
Is an encryption key the same as a password?
No. A password is chosen and remembered by a person. An encryption key is usually a long random value generated by software, although apps can derive a key from a password.
What happens if an encryption key is lost?
Data encrypted with it generally cannot be recovered. That is the point of strong encryption, and why any backup of a key needs as much care as the data itself.
What is a 256-bit encryption key?
A key made of 256 binary digits. Guessing it by trying every possible value is not feasible with any computer that exists.