{"id":26417838,"url":"https://github.com/lumarans30/astralsafeserver","last_synced_at":"2026-05-05T00:34:10.926Z","repository":{"id":65547613,"uuid":"594049787","full_name":"LuMarans30/AstralSafeServer","owner":"LuMarans30","description":"AstralSafe server with Node.js","archived":false,"fork":false,"pushed_at":"2023-02-15T14:07:48.000Z","size":35825,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T01:16:06.689Z","etag":null,"topics":["aes","cryptography","expressjs","nodejs","quantum-randomness"],"latest_commit_sha":null,"homepage":"https://lumarans30.github.io/AstralSafeServer/","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/LuMarans30.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-01-27T13:36:59.000Z","updated_at":"2025-02-20T02:03:15.000Z","dependencies_parsed_at":"2023-02-15T18:01:44.800Z","dependency_job_id":null,"html_url":"https://github.com/LuMarans30/AstralSafeServer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LuMarans30/AstralSafeServer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FAstralSafeServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FAstralSafeServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FAstralSafeServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FAstralSafeServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LuMarans30","download_url":"https://codeload.github.com/LuMarans30/AstralSafeServer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LuMarans30%2FAstralSafeServer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259686098,"owners_count":22896053,"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":["aes","cryptography","expressjs","nodejs","quantum-randomness"],"created_at":"2025-03-18T01:16:14.801Z","updated_at":"2026-05-05T00:34:10.895Z","avatar_url":"https://github.com/LuMarans30.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AstralSafeServer\n\n![GitHub](https://img.shields.io/github/license/LuMarans30/AstralSafeServer)\n![GitHub repo size](https://img.shields.io/github/repo-size/LuMarans30/AstralSafeServer)\n![Lines of code](https://img.shields.io/tokei/lines/github/LuMarans30/AstralSafeServer)\n![GitHub issues](https://img.shields.io/github/issues/LuMarans30/AstralSafeServer)\n![Website](https://img.shields.io/website?down_message=down\u0026up_message=online\u0026url=https%3A%2F%2Flumarans30.github.io%2FAstralSafeServer%2F)\n![GitHub last commit](https://img.shields.io/github/last-commit/LuMarans30/AstralSafeServer)\n\nA basic web server for AstralSafe license generation and validation using Node.js and Express.js.\u003cbr /\u003e\nThe license is generated using AES and a quantum random key.\n\nA simple client made with .NET MAUI can be found [here](https://www.github.com/LuMarans30/AstralSafeClient/)\n\n## Docs\n\nA better version of the API documentation using [Swagger](https://swagger.io/) is available at https://lumarans30.github.io/AstralSafeServer/ or at http://localhost:8080/docs.\n\n\u003cbr /\u003e\n\nBy running the server locally, you can test API requests with custom attributes via Swagger.\n\n## Usage\n\nYou can send a POST HTTP request to the following endpoints of http://localhost:8080 with the params: \u003cbr /\u003e\n{\"uid\": \"\"} or {\"uid\": \"\", \"license\": \"\"}.\n\n\u003cbr /\u003e\n\n\u003cul\u003e\n  \u003cli\u003e /api/keygen \u003c/li\u003e\n  \u003cli\u003e /api/validate-license \u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cbr /\u003e\n\n## Example\n\ncurl -X POST -d '{\"\"uid\"\": \"\"xxxx-xxxx-xxxx-xxxx\"\"}' -H \"Content-Type: application/json\" http://localhost:8080/api/keygen\n\n\u003cbr/\u003e\n\noutput: {\"key\": \"string\", \"license\":\"string\"}\n\n\u003chr /\u003e\n\ncurl -X POST -d '{\"\"uid\"\": \"\"xxxx-xxxx-xxxx-xxxx\"\", \"\"license\"\": \"\"string\"\"}' -H \"Content-Type: application/json\" http://localhost:8080/api/validate-license\n\n\u003cbr /\u003e\n\nif the license is valid, the output will be: {\"key\": \"string\"}\n\nelse the output will be: {\"valid\": \"false\"}\n\n\u003cbr /\u003e\n\n## Website\n\nTo check if the server is running, you can go to http://localhost:8080/.\n\n\u003cbr /\u003e\n\n## Client generation\n\nUsing the OpenApi documents in the swagger.yaml file in the dist directory, it is possible to automatically generate a client or server for different programming languages by importing the file into the [Swagger Editor](https://editor.swagger.io/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumarans30%2Fastralsafeserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flumarans30%2Fastralsafeserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flumarans30%2Fastralsafeserver/lists"}