{"id":50136333,"url":"https://github.com/bivex/ejafa_protocol","last_synced_at":"2026-05-23T22:03:42.886Z","repository":{"id":293729784,"uuid":"984956671","full_name":"bivex/ejafa_protocol","owner":"bivex","description":"Multi-language (Python, PHP, Go) implementation of the Ejafa communication protocol, providing secure and efficient data exchange using modern cryptographic primitives.","archived":false,"fork":false,"pushed_at":"2025-07-13T22:43:37.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T00:28:34.634Z","etag":null,"topics":["cryptography","data-exchange","go","network-protocol","php","python","security"],"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/bivex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-16T19:58:02.000Z","updated_at":"2025-07-13T22:43:41.000Z","dependencies_parsed_at":"2025-07-02T19:19:37.235Z","dependency_job_id":"0e106aae-04c0-4326-8d58-a3168489f962","html_url":"https://github.com/bivex/ejafa_protocol","commit_stats":null,"previous_names":["bivex/ejafa_protocol"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bivex/ejafa_protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bivex%2Fejafa_protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bivex%2Fejafa_protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bivex%2Fejafa_protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bivex%2Fejafa_protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bivex","download_url":"https://codeload.github.com/bivex/ejafa_protocol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bivex%2Fejafa_protocol/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33413624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","data-exchange","go","network-protocol","php","python","security"],"created_at":"2026-05-23T22:03:42.154Z","updated_at":"2026-05-23T22:03:42.880Z","avatar_url":"https://github.com/bivex.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EjafaProtocol Python Implementation\r\n[![Protocolled 📡](https://a.b-b.top/badge.svg?repo=ejafa_protocol\u0026label=Protocolled\u0026background_color=795548\u0026background_color2=8d6e63\u0026utm_source=github\u0026utm_medium=readme\u0026utm_campaign=badge)](https://a.b-b.top)\r\n\r\nThis is a Python implementation of the EjafaProtocol, a secure communication protocol that uses:\r\n- X25519 for key exchange\r\n- BLAKE2b for key derivation\r\n- XChaCha20-Poly1305 for authenticated encryption\r\n\r\n## Installation\r\n\r\n1. Clone this repository:\r\n```\r\ngit clone https://github.com/yourusername/EjafaProtocol.git\r\ncd EjafaProtocol\r\n```\r\n\r\n2. Install dependencies:\r\n```\r\npip install -r requirements.txt\r\n```\r\n\r\n## Usage\r\n\r\nRun the example implementation:\r\n\r\n```\r\npython ejafa.py\r\n```\r\n\r\n## Implementation Details\r\n\r\nThe EjafaProtocol Python implementation provides:\r\n\r\n1. **Secure Key Exchange**: Using X25519 for Diffie-Hellman key exchange\r\n2. **Key Derivation**: Using BLAKE2b for deriving session keys\r\n3. **Authenticated Encryption**: Using XChaCha20-Poly1305 for secure message encryption\r\n\r\n## API\r\n\r\n```python\r\n# Create protocol instances\r\nalice = EjafaProtocol(\"Alice\", alice_private_key, alice_public_key)\r\nbob = EjafaProtocol(\"Bob\", bob_private_key, bob_public_key)\r\n\r\n# Perform key exchange\r\nshared_secret = alice.perform_key_exchange(bob_public_key)\r\n\r\n# Derive session key\r\nkey = alice.derive_key(shared_secret)\r\n\r\n# Encrypt message\r\nciphertext, nonce = alice.encrypt(plaintext, key)\r\n\r\n# Decrypt message\r\nplaintext = bob.decrypt(ciphertext, key, nonce)\r\n```\r\n\r\n## Security Notes\r\n\r\n- This implementation uses cryptographic primitives from the `cryptography` and `PyNaCl` libraries\r\n- The protocol uses 32-byte keys and 24-byte nonces for XChaCha20-Poly1305\r\n- Key derivation uses 20 rounds of BLAKE2b hashing \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbivex%2Fejafa_protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbivex%2Fejafa_protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbivex%2Fejafa_protocol/lists"}