{"id":15463170,"url":"https://github.com/cxspxr/dhell","last_synced_at":"2025-03-28T11:22:50.304Z","repository":{"id":88617779,"uuid":"123832407","full_name":"cxspxr/dhell","owner":"cxspxr","description":"Diffie-Hellman Key Exchange in NodeJS","archived":false,"fork":false,"pushed_at":"2023-12-15T02:56:46.000Z","size":12,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T11:43:26.646Z","etag":null,"topics":["chat","diffie-hellman","diffie-hellman-algorithm","end-to-end","end-to-end-testing","example","javascript","js","nodejs","simple"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/cxspxr.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":"2018-03-04T21:50:25.000Z","updated_at":"2021-04-12T12:12:02.000Z","dependencies_parsed_at":"2023-12-15T03:47:20.829Z","dependency_job_id":"edfe98bf-1bd1-44bc-950a-125259d6f205","html_url":"https://github.com/cxspxr/dhell","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"06cd17c79e4915b282c5d1e667d3e43bfa48b554"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxspxr%2Fdhell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxspxr%2Fdhell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxspxr%2Fdhell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cxspxr%2Fdhell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cxspxr","download_url":"https://codeload.github.com/cxspxr/dhell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246018174,"owners_count":20710321,"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":["chat","diffie-hellman","diffie-hellman-algorithm","end-to-end","end-to-end-testing","example","javascript","js","nodejs","simple"],"created_at":"2024-10-02T00:07:39.605Z","updated_at":"2025-03-28T11:22:50.277Z","avatar_url":"https://github.com/cxspxr.png","language":"JavaScript","readme":"# Diffie-Hellman Key Exchange Simple End-to-End Chat in NodeJS\nJust a simple example of how `Diffie-Hellman Key Exchange` can be implemented in End-to-End Chat.\n\n## Installation\n\n```bash\nnpm i\n```\n\n## Usage\nMake sure you have **free** `:3000` in order to run `express` server. Otherwise, change the `port` constant inside the `express.js`.\n\n```bash\nnode express.js\n```\n\n## Routes\nI've set up chat with `GET` routes, just to make things simple and to emphasize publicity of distribution channels.  \n\nThere are two participants called `alice` and `bob`. You can find them in `express.js` file.\nSo you can navigate to one of these URLs using the showcase with `axios` in `express.js`\nor using your browser:  \n\n* `/send/message/:from/:to/:message` - sends a message. `:from` is the name `alice` or `bob`  \n(or yours, if you set it up), `:to` is the name of **another** chat participant and the  \n`message` is the message\n* `/send-public-key/:from/:to` - sends a public `Diffie-Hellman` key from `:from` (e.g. `alice`)  \nto `:to` (e.g. `bob`). This public key is then used to generate the common secret key, using  \na private key\n* `/inbox/:whose` - show an inbox of `:whose` (e.g. `alice`)\n\n## Logging\nAlso I am logging all things to the terminal, so you are able to not use your browser.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxspxr%2Fdhell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxspxr%2Fdhell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxspxr%2Fdhell/lists"}