{"id":38247894,"url":"https://github.com/alexyer/xxxdh-js","last_synced_at":"2026-01-17T01:24:58.724Z","repository":{"id":57402555,"uuid":"447965913","full_name":"alexyer/xxxdh-js","owner":"alexyer","description":"WASM wrapper around xxxdh library implementing Extended Triple Diffie-Hellman key exchange.","archived":false,"fork":false,"pushed_at":"2022-01-14T14:29:55.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T05:52:15.417Z","etag":null,"topics":["cryptography","diffie-hellman","key-exchange-protocol"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/alexyer.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}},"created_at":"2022-01-14T12:49:53.000Z","updated_at":"2022-01-14T12:50:43.000Z","dependencies_parsed_at":"2022-09-17T07:10:23.052Z","dependency_job_id":null,"html_url":"https://github.com/alexyer/xxxdh-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexyer/xxxdh-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexyer%2Fxxxdh-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexyer%2Fxxxdh-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexyer%2Fxxxdh-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexyer%2Fxxxdh-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexyer","download_url":"https://codeload.github.com/alexyer/xxxdh-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexyer%2Fxxxdh-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28491437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T00:50:05.742Z","status":"ssl_error","status_checked_at":"2026-01-17T00:43:11.982Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","diffie-hellman","key-exchange-protocol"],"created_at":"2026-01-17T01:24:58.632Z","updated_at":"2026-01-17T01:24:58.715Z","avatar_url":"https://github.com/alexyer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XXXDH_JS\nWASM wrapper around xxxdh library implementing Extended Triple Diffie-Hellman key exchange.\n\n## Usage\n```javascript\nimport * as xxxdh from \"xxxdh-js\";\n\nlet alice_identity = new xxxdh.X25519RistrettoKeyPair();\nlet alice_prekey = new xxxdh.X25519RistrettoKeyPair();\nlet alice_signature = alice_identity.sign(alice_prekey.public);\nlet alice_protocol = new xxxdh.ProtocolX25519RistrettoInMemSha256Aes256Gm(alice_identity.to_vec(), alice_prekey.to_vec(), alice_signature);\n\nlet onetime_keypair = new xxxdh.X25519RistrettoKeyPair();\n\nlet bob_identity = new xxxdh.X25519RistrettoKeyPair();\nlet bob_prekey = new xxxdh.X25519RistrettoKeyPair();\nlet bob_signature = bob_identity.sign(bob_prekey.public);\nlet bob_protocol = new xxxdh.ProtocolX25519RistrettoInMemSha256Aes256Gm(bob_identity.to_vec(), bob_prekey.to_vec(), bob_signature, [onetime_keypair.to_vec()]);\n\nlet alice_msg = alice_protocol.prepare_init_msg(bob_identity.public, bob_prekey.public, bob_signature, onetime_keypair.public);\nlet alice_init_msg = alice_msg.init_msg;\nlet alice_sk = alice_msg.shared_secret;\n\nlet bob_sk = bob_protocol.derive_shared_secret(\n    alice_init_msg.sender_identity,\n    alice_init_msg.sender_ephemerial_key,\n    alice_init_msg.receiver_onetime_key,\n    alice_init_msg.nonce, alice_init_msg.cyphertext\n);\n\nconsole.log(\"Alice:\", alice_sk);\nconsole.log(\"Bob:\", bob_sk);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexyer%2Fxxxdh-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexyer%2Fxxxdh-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexyer%2Fxxxdh-js/lists"}