{"id":25301607,"url":"https://github.com/zacharytamas/rsa-server","last_synced_at":"2026-04-28T11:03:20.634Z","repository":{"id":254501555,"uuid":"846732403","full_name":"zacharytamas/rsa-server","owner":"zacharytamas","description":"A simple Node.js server for storing and verifying public keys.","archived":false,"fork":false,"pushed_at":"2025-01-07T14:56:06.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T01:18:23.464Z","etag":null,"topics":["cryptography","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zacharytamas.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}},"created_at":"2024-08-23T20:50:11.000Z","updated_at":"2025-01-07T14:57:05.000Z","dependencies_parsed_at":"2024-08-23T22:09:39.544Z","dependency_job_id":"a7be8ce4-0c34-4e8c-b6bf-8ee0dda50a32","html_url":"https://github.com/zacharytamas/rsa-server","commit_stats":null,"previous_names":["zacharytamas/zachary-2022","zacharytamas/rsa-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zacharytamas/rsa-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharytamas%2Frsa-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharytamas%2Frsa-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharytamas%2Frsa-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharytamas%2Frsa-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacharytamas","download_url":"https://codeload.github.com/zacharytamas/rsa-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacharytamas%2Frsa-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"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","nodejs"],"created_at":"2025-02-13T06:44:00.086Z","updated_at":"2026-04-28T11:03:20.612Z","avatar_url":"https://github.com/zacharytamas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rsa-server\n\nA simple server for storing and verifying public keys.\n\n## Usage\n\nFirst, run `npm install` to install the dependencies.\n\n### Server\n\nTo start the server, run `node server.js`. It can be configured with environment variables:\n\n- `PORT`: The port to listen on. Defaults to `4545`.\n- `USERNAME`: The username to use for the server. Defaults to `zachary`.\n- `PASSWORD`: The password to use for the server. Defaults to `password`.\n\nExample:\n\n```bash\nPORT=4546 USERNAME=zachary PASSWORD=password node server.js\n```\n\n### Client\n\nTo start the client, run `node client.js`. It can be configured with environment variables:\n\n- `PORT`: The port to connect to. This should match the port used to launch the server.Defaults to `4545`.\n- `USERNAME`: The username to use for the client. Defaults to `zachary`.\n- `PASSWORD`: The password to use for the client. Defaults to `password`.\n\nExample:\n\n```bash\nPORT=4546 USERNAME=zachary PASSWORD=password node client.js\n```\n\nInitially you will need to create a keypair:\n\n```bash\n$ node client.js create\n```\n\nYou can then publish the public key to the server. The server will update its database with the public key for the logged in user.\n\n```bash\n$ node client.js publish\n```\n\nYou can then sign a message:\n\n```bash\n$ node ./client.js sign -m \"Message\"\nMessage\n\nX/5ymqgv4d9vPafNXd3Wvzh4l09dZXT2zWAkb15QGuvTfCAI5Vf2sNsN8Yn/Hile+4lP9bUNkHIfLTFv7988E05WwYhLs2Lq1piZGt6VNcw8LTXEJcaKsMuCP9oRu9vZDpn6A/ACL9ysWe0axLH0J70R5e5/PNJLWFPgU7nbIardWwpMZO4pjYelU3JFOqTOunzKcOxI02pX6sGaXt2bfR74GxwjZGEWjWMMdi9BPgJ/qzYt+SEQm0JHr6cYYLqtF2RwDVJVtcee/RAsgk18Iveqj5uBfbEfTMYbjn7gthorPmnjV1gezXAoaT+ntSDgfJ6xqaAsvc740AcMY2eIh258oUpcT6jwnogaj+SZVNWkzDlgtDn0Hj2RXVtKsFE3LgsH36b4qJxp7o8jLqajrWN/3+JfFcLg0Y2ZYKklfQ4p5IcmHA4JbPbp7fk7fp3fMUAFn9TEDZDo8/fWTISuQdjy0qTUdGAlfvhTcU6sBApX31FtUHcLn2f+cIpqaxTvXRmS8hPVtBO2a5Jz9JyeBo95UMh3tFqMiIBFWTPmYeM1JW4yVVVF/WZCx7Vk4H75Dw0h99TC60Xv/XRItO8/nzE9z0av+P37zR8uTYLRTZq5HT6Wgzd2+p9aSvAUPYLhOHUak4cNiPg9zF0WnkQbCxwYTwa3dn19HyZ49TAtUkE=\n```\n\nAnd finally, you can verify a signature:\n\n```bash\n$ node client.js verify -m \"Message\" -s \"\u003csignature\u003e\"\n\n  The message was signed by this signature.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacharytamas%2Frsa-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacharytamas%2Frsa-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacharytamas%2Frsa-server/lists"}