{"id":16568323,"url":"https://github.com/xu-cheng/pbc-bindings","last_synced_at":"2026-04-18T07:32:41.132Z","repository":{"id":74418172,"uuid":"68113440","full_name":"xu-cheng/pbc-bindings","owner":"xu-cheng","description":":electric_plug: Bindings for Pairing-Based Cryptography (libpbc)","archived":false,"fork":false,"pushed_at":"2018-05-03T09:44:55.000Z","size":129,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-28T14:46:09.817Z","etag":null,"topics":["bindings","cplusplus","cplusplus-14","cryptography","pbc","python","ruby","swig"],"latest_commit_sha":null,"homepage":"","language":"C++","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/xu-cheng.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-13T13:57:21.000Z","updated_at":"2019-11-02T07:52:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"90bb2ecc-1fab-4d97-b768-3d7cb9438015","html_url":"https://github.com/xu-cheng/pbc-bindings","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xu-cheng/pbc-bindings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-cheng%2Fpbc-bindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-cheng%2Fpbc-bindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-cheng%2Fpbc-bindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-cheng%2Fpbc-bindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xu-cheng","download_url":"https://codeload.github.com/xu-cheng/pbc-bindings/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xu-cheng%2Fpbc-bindings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31961196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["bindings","cplusplus","cplusplus-14","cryptography","pbc","python","ruby","swig"],"created_at":"2024-10-11T21:09:05.266Z","updated_at":"2026-04-18T07:32:41.114Z","avatar_url":"https://github.com/xu-cheng.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bindings for Pairing-Based Cryptography (libpbc)\n\nThis project offers (partial) C++14 and SWIG bindings for [libpbc](https://crypto.stanford.edu/pbc/).\nNoted that not all of libpbc C functions have been ported.\n\n## How to use?\n\n### C++14\n\nC++14 binding is head-only. Just copy the files inside `include/` into your project.\n\n```cpp\n#include \u003cpbc/pbc.hpp\u003e\nusing namespace pbc;\n```\n\n### SWIG\n\n[SWIG](http://www.swig.org) offers bindings in a variety of high-level programming languages.\nCurrently Python and Ruby bindings are supported and tested.\nHowever, it should be relatively easy to build binding in any language supported by SWIG.\nThe SWIG interface files are located in `swig/` folder.\n\n* Python\n```bash\nmkdir build\ncd build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON\nmake\n```\nPython library files will be built into `swig/python`.\n\n* Ruby\n```bash\nmkdir build\ncd build\ncmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_RUBY=ON\nmake\n```\nRuby library files will be built into `swig/ruby`.\n\n## Development\n\nTo run test case:\n\n```bash\nmake test\n#OR\nmake test-verbose\n```\n\n## Author\n\n* [Xu Cheng](https://xuc.me)\n\n## License\n\nMIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxu-cheng%2Fpbc-bindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxu-cheng%2Fpbc-bindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxu-cheng%2Fpbc-bindings/lists"}