Functional encryption explained in plain terms means understanding the encryption scheme where a decryption key reveals only one answer, not the whole secret, a system in which the key holder learns exactly the function they were given and nothing else. The central question is why anyone would want a key that decrypts less than everything, and the answer is that most of the time nobody needs the whole secret, so a key that reveals only the answer is a key that cannot leak the rest.
Functional encryption is a generalisation of public-key encryption in which a secret key is tied to a function. An authority holding a master secret key issues a derived key for a function f, and anyone holding that key can compute f of the plaintext from its encryption, which means the data stays locked while the answer flows free, and because the key reveals only f of x, the rest of x stays secret.
This article explains what functional encryption is, how it works, and where it runs in the real world.
Key takeaways
- Functional encryption keys reveal one function of the data.
- Boneh, Sahai and Waters formalised it in 2011.
- It generalises identity and attribute-based encryption.
- It has four algorithms: setup, encrypt, keygen, decrypt.
- General schemes are still hard to build efficiently.
What functional encryption is
Functional encryption is an encryption system that turns decryption into a controlled computation, and that control is what makes it unusual among encryption schemes. Each secret key is bound to one function, which means the key holder can learn the average salary but not any individual salary, and because the function is fixed at key issue time, the authority decides in advance what each key is allowed to reveal.
Its signature feature is the partial reveal. Most encryption is all or nothing, but functional encryption lets a key open one window into the data, which means a hospital can share a research result without sharing patient records, and because the window is the whole key, there is no way to widen it afterwards.
The idea was a reaction to the limits of ordinary encryption. Identity-based and attribute-based encryption already let keys depend on who you are, so Sahai and Waters asked whether keys could depend on what you should learn, because a key that says who may decrypt says nothing about what they may learn, and that practicality is what made functional encryption worth defining.
It became one of the best-known ideas in modern cryptography, and it is named in every discussion of the field. Sahai and Waters proposed it in 2005, Boneh, Sahai and Waters gave it a formal treatment at the Theory of Cryptography Conference in 2011, schemes for arbitrary functions arrived in 2012, and it is still the first example engineers meet when they learn that encryption can be more than all or nothing, which means the idea survives as a vision even though practical schemes remain limited.
Our guide to CKKS explains the homomorphic scheme that computes on encrypted data in a different way, and our guide to hashing explains the one-way functions functional encryption builds on.
How functional encryption works
Everything starts with setup, which creates the master keys. The authority runs setup to produce a public key and a master secret key, which means the public key goes to everyone who encrypts, and because the master secret never leaves the authority, only the authority can issue function keys.
Each step begins with encryption, which locks the data under the public key. Anyone can encrypt a value x, which means the ciphertext hides x completely, and because encryption needs no secret, data can be collected from people who never meet the authority.
Key generation is what makes the design work as a whole. The authority takes a function f and the master secret and produces a derived key for f, which means the key is useless for any other function, and because the derivation is tied to f, a key for the average cannot be twisted into a key for the raw data.
Decryption spreads the effect further. The key holder applies their key to the ciphertext and learns f of x, which means the answer appears while x stays hidden, and because the decryption reveals only the function output, the rest of the data is as secret as if it had never been encrypted at all.
The security definition is what turns the idea into a rigorous scheme. The definition demands that an attacker learns nothing about x beyond what the functions they hold reveal, which means the scheme must hide everything else, and because that demand is hard to satisfy, proving a scheme secure is a serious undertaking.
The result comes from the function output, read out as an answer rather than a plaintext. Functional encryption hands back f of x and nothing more, which means the result is a computed answer whatever the input, and that answer is exactly what a data-sharing system needs.

Comparing functional encryption with other encryption
Functional encryption is one of several ways to control what decryption reveals, and each was built with a different emphasis. Public-key encryption is the classic scheme built for all-or-nothing decryption, homomorphic encryption is the scheme built to compute on ciphertexts, and functional encryption is the one built to reveal only chosen answers, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | Functional encryption | Public-key encryption | Homomorphic encryption |
|---|---|---|---|
| Decryption reveals | One function output | Whole plaintext | Computed ciphertext |
| Key tied to | A function | An identity | Nothing special |
| Authority needed | Yes, to issue keys | No | No |
| Practical today | Limited functions | Yes, everywhere | Slow but usable |
| Best for | Controlled sharing | Private messages | Outsourced computing |
The practical result is that functional encryption is the right choice for controlled sharing, public-key encryption suits private messages, and homomorphic encryption fits outsourced computing instead.
Where functional encryption is used
Research uses it to share statistics safely. A hospital can encrypt patient data and issue a key that reveals only the average, because researchers need the trend rather than the records, and that need is the reason functional encryption earns its keep in data sharing.
Cloud services use it for filtered access. A storage service can give a spam filter a key that reveals only whether a message is spam, because the filter should not read the mail, and that restraint is the reason the design was built for real services.
Access control uses it as the policy engine. An encrypted file can carry a key that reveals the document only to users whose attributes match, because identity-based and attribute-based encryption are both special cases of it, and that generality is the reason functional encryption appears in access control far beyond its research origins.
Benchmarking uses it as the expressive reference. Engineers still quote functional encryption when they discuss how much a key should reveal, because it is the clearest example of decryption as a policy, and that number shapes how new schemes are measured.
Teaching uses it as the generalisation example. Courses introduce functional encryption when they explain that identity-based encryption is just one function, because it is the clearest case of many schemes being one idea, and a student who understands functional encryption understands why encryption is really about controlled revelation.
Strengths and limits
The greatest strength of functional encryption is its expressiveness. A key that reveals exactly one function can encode almost any access policy, and that strength is real, measured in the schemes it generalises and confirmed by the research that keeps building on it.
It is also a strength that the idea is non-interactive. Once a key is issued, the holder can decrypt without talking to the authority again, and that independence is worth more than cleverness in a field where a scheme that needs a phone call for every decryption is a scheme nobody deploys.
The limits are real, though, and the biggest is efficiency. General functional encryption for arbitrary functions is still slow and heavy, which means practical systems use it only for narrow function classes, and a system that needs it for everything must wait for better constructions.
Functional encryption checklist
- Use functional encryption for controlled sharing, never as a drop-in cipher.
- Remember Boneh, Sahai and Waters formalised it in 2011.
- Note a key reveals one function and nothing else.
- Compare it with homomorphic encryption to see two kinds of computing.
- Study the four algorithms, which are what make the system run.
- Check the function class, since general schemes stay slow.
- Keep the master secret with the authority alone.
- Read the 2011 paper to see how the definitions were set.
- Choose functional encryption when answers must stay separate from data.
Frequently asked questions
What is functional encryption in simple terms?
It is encryption where each key reveals only one chosen result, like an average, while the underlying data stays hidden.
Who created functional encryption?
Amit Sahai and Brent Waters proposed it in 2005, and Dan Boneh joined them for the formal treatment in 2011.
How is functional encryption different from homomorphic encryption?
Both compute on encrypted data, but functional encryption reveals the answer directly while homomorphic encryption returns another ciphertext.
Is functional encryption still secure?
It is a well-studied idea with proven schemes, but general constructions remain slow, so practical use is limited to narrow functions.
Where is functional encryption used?
In research data sharing, in filtered cloud access, in access control, and in teaching about modern encryption.
When should I use functional encryption?
When you must share answers without sharing data, when you design access policy, or when you study advanced encryption.
The bottom line
Functional encryption explained in one line is this: a key that answers one question, a 2011 vision that turned decryption into a policy and taught the field that encryption is not about hiding data but about controlling what it reveals.
It is proof that a key can be a rule as well as a secret, and the reason it still matters is that every controlled-sharing scheme designed since has been judged partly by the lesson functional encryption taught.
This article is general information about how functional encryption works, not advice about choosing encryption for a particular device or system.







