{"id":13654957,"url":"https://github.com/data61/python-paillier","last_synced_at":"2025-10-21T19:06:10.822Z","repository":{"id":22860291,"uuid":"26207941","full_name":"data61/python-paillier","owner":"data61","description":"A library for Partially Homomorphic Encryption in Python","archived":false,"fork":false,"pushed_at":"2023-08-04T08:19:39.000Z","size":299,"stargazers_count":629,"open_issues_count":23,"forks_count":139,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-10-10T22:17:09.226Z","etag":null,"topics":["cryptography","homomorphic-encryption","paillier","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/data61.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-11-05T07:15:28.000Z","updated_at":"2025-10-02T10:51:48.000Z","dependencies_parsed_at":"2023-01-13T22:20:52.106Z","dependency_job_id":"24be07e2-6162-4a44-9610-7dd1bf88b286","html_url":"https://github.com/data61/python-paillier","commit_stats":{"total_commits":206,"total_committers":16,"mean_commits":12.875,"dds":0.5970873786407767,"last_synced_commit":"7d9911eb03c3c2d64399bc15405feb5e628379d1"},"previous_names":["n1analytics/python-paillier"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/data61/python-paillier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data61%2Fpython-paillier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data61%2Fpython-paillier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data61%2Fpython-paillier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data61%2Fpython-paillier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/data61","download_url":"https://codeload.github.com/data61/python-paillier/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/data61%2Fpython-paillier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279661771,"owners_count":26207107,"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-18T02:00:06.492Z","response_time":62,"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":["cryptography","homomorphic-encryption","paillier","python"],"created_at":"2024-08-02T03:00:53.118Z","updated_at":"2025-10-21T19:06:10.773Z","avatar_url":"https://github.com/data61.png","language":"Python","readme":"python-paillier  |release|\n==========================\n\n+---------------------+\n|      |ciTest|       |\n+---------------------+\n|      |rtdM|         |\n+---------------------+\n|      |reqM|         |\n+---------------------+\n\nA Python 3 library implementing the Paillier Partially Homomorphic Encryption.\n\nThe homomorphic properties of the paillier crypto system are:\n\n-  Encrypted numbers can be multiplied by a non encrypted scalar.\n-  Encrypted numbers can be added together.\n-  Encrypted numbers can be added to non encrypted scalars.\n\nCiting\n======\n\n`python-paillier` is designed, developed and supported by `CSIRO's Data61 \u003chttps://www.data61.csiro.au/\u003e`__. If\nyou use any part of this library in your research, please cite it using the following BibTex entry::\n\n    @misc{PythonPaillier,\n      author = {CSIRO's Data61},\n      title = {Python Paillier Library},\n      year = {2013},\n      publisher = {GitHub},\n      journal = {GitHub Repository},\n      howpublished = {\\url{https://github.com/data61/python-paillier}},\n    }\n\n\nRunning unit tests\n------------------\n\n::\n\n   python setup.py test\n\nOr use nose::\n\n   nosetests\n\n\nNote related to gmpy2\n---------------------\n\n`gmpy2` is not required to use the library, but is preferred. A pure Python implementation is available but \n`gmpy2` drastically improves performances. As indication on a laptop not dedicated to benchmarking, running the example\n`examples/federated_learning_with_encryption.py` provided in the library took:\n- 4.5s with `gmpy2` installed\n- 35.7s without `gmpy2` installed\n\nHowever, `gmpy2` is a requirement to run the tests.\n\nCode History\n------------\n\nDeveloped at `Data61 | CSIRO \u003chttp://data61.csiro.au\u003e`_.\n\nParts derived from the Apache licensed Google project:\nhttps://code.google.com/p/encrypted-bigquery-client/\n\n\n.. |release| image:: https://img.shields.io/pypi/v/phe.svg\n    :target: https://pypi.python.org/pypi/phe/\n    :alt: Latest released version on PyPi\n\n.. |ciTest| image:: https://github.com/data61/python-paillier/actions/workflows/test.yml/badge.svg\n    :target: https://github.com/data61/python-paillier/actions/workflows/test.yml\n    :alt: CI Status\n\n.. |reqM| image:: https://requires.io/github/data61/python-paillier/requirements.svg?branch=master\n    :target: https://requires.io/github/data61/python-paillier/requirements/?branch=master\n    :alt: Requirements Status of master\n\n.. |rtdM| image:: https://readthedocs.org/projects/python-paillier/badge/?version=stable\n   :target: http://python-paillier.readthedocs.org/en/latest/?badge=stable\n   :alt: Documentation Status\n\n","funding_links":[],"categories":["Libraries","Python"],"sub_categories":["[Sunscreen](https://sunscreen.tech/)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata61%2Fpython-paillier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdata61%2Fpython-paillier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdata61%2Fpython-paillier/lists"}