{"id":19390347,"url":"https://github.com/nucypher/sgfhe.jl","last_synced_at":"2025-10-28T03:45:48.975Z","repository":{"id":101544613,"uuid":"148374265","full_name":"nucypher/SGFHE.jl","owner":"nucypher","description":"A Julia implementation of Shuhong Gao's FHE scheme","archived":false,"fork":false,"pushed_at":"2019-12-20T18:41:41.000Z","size":295,"stargazers_count":3,"open_issues_count":3,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-03T21:27:31.881Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://nucypher.github.io/SGFHE.jl","language":"Julia","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nucypher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-09-11T20:10:57.000Z","updated_at":"2023-05-09T06:21:24.000Z","dependencies_parsed_at":"2023-06-05T10:00:32.253Z","dependency_job_id":null,"html_url":"https://github.com/nucypher/SGFHE.jl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nucypher/SGFHE.jl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2FSGFHE.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2FSGFHE.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2FSGFHE.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2FSGFHE.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nucypher","download_url":"https://codeload.github.com/nucypher/SGFHE.jl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucypher%2FSGFHE.jl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281381650,"owners_count":26491160,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-10T10:20:25.665Z","updated_at":"2025-10-28T03:45:48.930Z","avatar_url":"https://github.com/nucypher.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shuhong Gao's FHE scheme\n\nMaster branch: [![CircleCI](https://circleci.com/gh/nucypher/SGFHE.jl/tree/master.svg?style=svg)](https://circleci.com/gh/nucypher/SGFHE.jl/tree/master) [![codecov](https://codecov.io/gh/nucypher/SGFHE.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/nucypher/SGFHE.jl)\n\nThis package contains a reference implementation of the FHE scheme from [S. Gao, \"Efficient fully homomorphic encryption scheme\"](https://eprint.iacr.org/2018/637).\nThe aim is to keep the implementation simple as long as it does not affect the performance too much.\n\nA brief usage example:\n\n    using Random\n    using SGFHE\n\n    rng = MersenneTwister()\n    params = Params(64)\n    key = PrivateKey(params, rng)\n    bkey = BootstrapKey(rng, key)\n\n    y1 = true\n    y2 = false\n\n    enc_y1 = encrypt(key, rng, y1)\n    enc_y2 = encrypt(key, rng, y2)\n\n    enc_and, enc_or, enc_xor = bootstrap(bkey, rng, enc_y1, enc_y2)\n    res_and, res_or, res_xor = [decrypt(key, enc_bit) for enc_bit in (enc_and, enc_or, enc_xor)]\n\n    @assert res_and == y1 \u0026 y2\n    @assert res_or == y1 | y2\n    @assert res_xor == xor(y1, y2)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucypher%2Fsgfhe.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnucypher%2Fsgfhe.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucypher%2Fsgfhe.jl/lists"}