{"id":28458770,"url":"https://github.com/openmined/pyfe","last_synced_at":"2025-07-02T09:31:29.759Z","repository":{"id":55345499,"uuid":"266143528","full_name":"OpenMined/PyFE","owner":"OpenMined","description":"A library for running Functional Encryption on tensors","archived":false,"fork":false,"pushed_at":"2021-01-05T12:20:47.000Z","size":24,"stargazers_count":44,"open_issues_count":4,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-07T00:39:49.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenMined.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-22T15:24:37.000Z","updated_at":"2025-03-05T03:00:23.000Z","dependencies_parsed_at":"2022-08-14T21:42:40.623Z","dependency_job_id":null,"html_url":"https://github.com/OpenMined/PyFE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OpenMined/PyFE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FPyFE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FPyFE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FPyFE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FPyFE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenMined","download_url":"https://codeload.github.com/OpenMined/PyFE/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenMined%2FPyFE/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263111420,"owners_count":23415449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-07T00:39:45.543Z","updated_at":"2025-07-02T09:31:29.738Z","avatar_url":"https://github.com/OpenMined.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyFE\n\nA library for running Functional Encryption on tensors\n\n## What is Functional Encryption?\n\nFunctional encryption (FE) is a generalization of public-key encryption in which possessing a secret key allows one to learn a function of what the ciphertext is encrypting. Functional encryption extends the notion of public key encryption where one uses a public key `pk` and a secret key `sk` to respectively encrypt and decrypt some data. More precisely, `pk` is still used to encrypt data, but for a given function f, `sk` can be used to derive a functional decryption key `dkf`\nwhich will be shared to users so that, given a ciphertext of `x`, they can decrypt `f(x)` but not `x`. In\nparticular, someone having access to `dkf` cannot learn anything about `x` other than `f(x)`. Note also\nthat functions cannot be composed, since the decryption happens within the function evaluation.\nHence, only single quadratic functions can be currently securely evaluated.\n\n**Perfect correctness**: Perfect correctness is achieved in functional encryption: ∀x ∈ X , f ∈ F,\nPr[Dec(dkf , ct) = f(x)] = 1, where dkf ← KeyGen(msk, f) and ct ← Enc(pk, x). Note that this\nproperty is a very strict condition, which is not satisfied by exisiting fully homomorphic encryption\nschemes (FHE),\n\n\n## How it helps in deep learning ?\n\nIt will mask the private data and allow to evaluate a pre-trained model thanks to its decryption key `dkf`\n\n## Installation\n\n```\npip install PyFE\n```\n\n# Usage\n\n[] to do\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmined%2Fpyfe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmined%2Fpyfe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmined%2Fpyfe/lists"}