{"id":22824775,"url":"https://github.com/kosasih/pi-network-quantum-resistant-cryptography","last_synced_at":"2025-04-14T02:12:08.934Z","repository":{"id":240600402,"uuid":"803069515","full_name":"KOSASIH/pi-network-quantum-resistant-cryptography","owner":"KOSASIH","description":"A library for quantum-resistant cryptography in the Pi Network, built using NIST PQC candidates and Pi SDK","archived":false,"fork":false,"pushed_at":"2024-05-20T11:09:46.000Z","size":111,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T16:11:15.239Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KOSASIH.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":"2024-05-20T02:19:01.000Z","updated_at":"2025-03-01T06:44:00.000Z","dependencies_parsed_at":"2024-05-20T03:27:53.275Z","dependency_job_id":"a39d679c-5470-4759-a0aa-401343ff4f37","html_url":"https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography","commit_stats":null,"previous_names":["kosasih/pi-network-quantum-resistant-cryptography"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOSASIH%2Fpi-network-quantum-resistant-cryptography","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOSASIH%2Fpi-network-quantum-resistant-cryptography/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOSASIH%2Fpi-network-quantum-resistant-cryptography/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KOSASIH%2Fpi-network-quantum-resistant-cryptography/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KOSASIH","download_url":"https://codeload.github.com/KOSASIH/pi-network-quantum-resistant-cryptography/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248809051,"owners_count":21164896,"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-12-12T17:08:17.805Z","updated_at":"2025-04-14T02:12:08.907Z","avatar_url":"https://github.com/KOSASIH.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Static Badge](https://img.shields.io/badge/Pi-Quantum-gold)\n[![CodeQL](https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography/actions/workflows/codeql.yml/badge.svg)](https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography/actions/workflows/codeql.yml)\n[![Mark stale issues and pull requests](https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography/actions/workflows/stale.yml/badge.svg)](https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography/actions/workflows/stale.yml)\n[![CodeFactor](https://www.codefactor.io/repository/github/kosasih/pi-network-quantum-resistant-cryptography/badge)](https://www.codefactor.io/repository/github/kosasih/pi-network-quantum-resistant-cryptography)\n[![DeepSource](https://app.deepsource.com/gh/KOSASIH/pi-network-quantum-resistant-cryptography.svg/?label=active+issues\u0026show_trend=true\u0026token=LJ6FtbHDlh2B6Y1euAOkNxqm)](https://app.deepsource.com/gh/KOSASIH/pi-network-quantum-resistant-cryptography/)\n\n\u003cp xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dct=\"http://purl.org/dc/terms/\"\u003e\u003ca property=\"dct:title\" rel=\"cc:attributionURL\" href=\"https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography\"\u003ePiQuantum\u003c/a\u003e by \u003ca rel=\"cc:attributionURL dct:creator\" property=\"cc:attributionName\" href=\"https://www.linkedin.com/in/kosasih-81b46b5a\"\u003eKOSASIH\u003c/a\u003e is licensed under \u003ca href=\"https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1\" target=\"_blank\" rel=\"license noopener noreferrer\" style=\"display:inline-block;\"\u003eCreative Commons Attribution 4.0 International\u003cimg style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\" src=\"https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1\" alt=\"\"\u003e\u003cimg style=\"height:22px!important;margin-left:3px;vertical-align:text-bottom;\" src=\"https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1\" alt=\"\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n# pi-network-quantum-resistant-cryptography\n\nA library for quantum-resistant cryptography in the Pi Network, built using NIST PQC candidates and Pi SDK. \n\n# Pi Network Quantum-Resistant Cryptography\n\nPi Network Quantum-Resistant Cryptography is a================ cryptographic protocol that uses quantum-resistant algorithms and networks. The protocol ensures the confidentiality, integrity, and authenticity of data exchanged between parties in a secure manner.\n\n# Requirements\n\n- Python 3.7 or higher\n- Qiskit 0.33.0 or higher\n- TensorFlow 2.4.0 or higher\n- NetworkX 2.5 or higher\n- Pytest 6.2.3 or higher (for testing)\n\n# Installation\n\n1. Clone the repository:\n\n```bash\n\n1. git clone https://github.com/KOSASIH/pi-network-quantum-resistant-cryptography.git\n```\n\n2. Change the directory to the cloned repository:\n\n```bash\n\n1. cd pi-network-quantum-resistant-cryptography\n```\n3. Install the required packages:\n\n```bash\n\n1. pip install -r requirements.txt\n2. Install the pyqryptos library for quantum-resistant cryptography:\n3. pip install pyqryptos\n```\n\n# Usage\n\n1. To create a new Pi Network Quantum-Resistant Cryptography instance:\n\n```python\n\n1. from pqcrypto import PIQR\n```\n\n# Create a new Pi Network Quantum-Resistant Cryptography instance\n\n```\n1. piqr = PIQR()\n```\n2. To generate a key pair for a party in the network:\n\n```python\n\n1. # Generate a key pair for a party in the network\n2. public_key, private_key = piqr.generate_keys()\n```\n\n3. To encrypt a message using the public key of a party:\n\n```python\n\n1. # Encrypt a message using the public key of a party\n2. encrypted_message = piqr.encrypt(message, public_key)\n```\n\n4. To decrypt a message using the private key of a party:\n\n```python\n\n1.# Decrypt a message using the private key of a party\n2. decrypted_message = piqr.decrypt(encrypted_message, private_key)\n```\n5. To perform a key exchange between two parties in the network:\n\n```python\n\n1. # Perform a key exchange between two parties in the network\n2. shared_key = piqr.key_exchange(public_key_1, private_key_2)\n```\n\n6. To create a new Pi Network Quantum-Resistant Cryptography instance with custom parameters:\n\n```\n1. # Create a new Pi Network Quantum-Resistant Cryptography instance with custom parameters\n2. piqr_custom = PIQR(custom_parameters)\n```\n7. To run tests for the Pi Network Quantum-Resistant Cryptography implementation:\n\n```bash\n\n1. pytest tests\n```\n\nPlease note that the current implementation is for educational purposes and should not be used in production environments. It provides a basic understanding of how quantum-resistant cryptography can be integrated into a network. Further optimizations and enhancements can be made to improve the performance and security of the protocol.\n\nThis project has been created for the KOSASIH Challenge, which aims to develop solutions that are compatible with the transition to quantum computing. By incorporating quantum-resistant algorithms and cryptographic techniques into our protocol, we can ensure the continued security and privacy of data exchanged in our Pi Network Quantum-Resistant Cryptography.\n\nFeel free to explore the code, raise issues, and submit pull requests to contribute to the project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosasih%2Fpi-network-quantum-resistant-cryptography","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkosasih%2Fpi-network-quantum-resistant-cryptography","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkosasih%2Fpi-network-quantum-resistant-cryptography/lists"}