{"id":13654904,"url":"https://github.com/facebookresearch/Cupcake","last_synced_at":"2025-04-23T10:31:37.845Z","repository":{"id":41498294,"uuid":"344243307","full_name":"facebookresearch/Cupcake","owner":"facebookresearch","description":"A Rust library for lattice-based additive homomorphic encryption. ","archived":false,"fork":false,"pushed_at":"2023-09-29T16:24:59.000Z","size":131,"stargazers_count":415,"open_issues_count":3,"forks_count":29,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-12T18:53:41.289Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facebookresearch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-03-03T19:38:04.000Z","updated_at":"2025-02-23T02:11:07.000Z","dependencies_parsed_at":"2024-01-06T07:48:26.164Z","dependency_job_id":"cde9fb48-0edf-48cc-895d-4d847441989e","html_url":"https://github.com/facebookresearch/Cupcake","commit_stats":{"total_commits":6,"total_committers":3,"mean_commits":2.0,"dds":"0.33333333333333337","last_synced_commit":"35bbfbfbe3e2b9921c116280b1449c40e01f11a7"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookresearch%2FCupcake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookresearch%2FCupcake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookresearch%2FCupcake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookresearch%2FCupcake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facebookresearch","download_url":"https://codeload.github.com/facebookresearch/Cupcake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250416406,"owners_count":21426984,"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":"2024-08-02T03:00:52.535Z","updated_at":"2025-04-23T10:31:37.459Z","avatar_url":"https://github.com/facebookresearch.png","language":"Rust","readme":"# Cupcake\n\nCupcake is an efficient Rust library for the (additive version of) Fan-Vercauteren homomorphic encryption scheme, offering capabilities to\nencrypt vectors, add/subtract two encrypted vectors, and rerandomize a ciphertext.\n\n\n## Requirements\nCupcake requires or works with\n* Mac OS X or Linux\n\n## Installation\nAdd the following line to the dependencies of your Cargo.toml:\n```\nCupcake = \"0.2.1\"\n```\n\n## Building from source\n\n```bash\ngit clone https://github.com/facebookresearch/Cupcake\ncd cupcake\ncargo build --release\n```\n\n## Examples\n\nSeveral examples are included in `examples/\u003cname\u003e.rs`, and can be run via\n`cargo run --example \u003cname\u003e`\n\n## Documentation\n\nDocumentation on the API can be built from `cargo doc`.\n\n## Benchmarks and Tests\n\nWe have included benchmarks and tests for both homomorphic operations and underlying arithmetic operations. They can be run using `cargo bench` and `cargo test`.\n\n## Supported parameters\n\nCurrently, we provide only one set of secure parameter, namely `FV::\u003cScalar\u003e::default_2048();`. This parameter set has an estimated security level of about 128 bits according\nto the homomorphic encryption security standards [link](http://homomorphicencryption.org/wp-content/uploads/2018/11/HomomorphicEncryptionStandardv1.1.pdf). Use other parameters at your own risk! With the default parameter set, the plaintext type is vector of `u8` with a fixed length 2048.\n\n\n## References\n\n- [The Fan-Vercauteren scheme](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.400.6346\u0026rep=rep1\u0026type=pdf)\n\nSee the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.\n\n## License\nCupcake is MIT licensed, as found in the LICENSE file.\n","funding_links":[],"categories":["Libraries","隐私新技术","4.1 FHE Libraries","General","Rust"],"sub_categories":["隐私相关领域法规/条例","[Sunscreen](https://sunscreen.tech/)","Secure Sharing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebookresearch%2FCupcake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacebookresearch%2FCupcake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebookresearch%2FCupcake/lists"}