{"id":31789127,"url":"https://github.com/gianfrancofrau/jwt-tool","last_synced_at":"2025-10-10T14:46:25.563Z","repository":{"id":316107254,"uuid":"1061998399","full_name":"GianfrancoFrau/jwt-tool","owner":"GianfrancoFrau","description":"A simple web tool to encode and decode JWT Tokens","archived":false,"fork":false,"pushed_at":"2025-09-22T17:52:09.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T19:16:20.314Z","etag":null,"topics":["codex","javascript","jwt"],"latest_commit_sha":null,"homepage":"https://gianfrancofrau.github.io/jwt-tool/","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/GianfrancoFrau.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T17:04:18.000Z","updated_at":"2025-09-22T17:52:13.000Z","dependencies_parsed_at":"2025-09-22T21:31:57.326Z","dependency_job_id":null,"html_url":"https://github.com/GianfrancoFrau/jwt-tool","commit_stats":null,"previous_names":["gianfrancofrau/jwt-tool"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/GianfrancoFrau/jwt-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianfrancoFrau%2Fjwt-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianfrancoFrau%2Fjwt-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianfrancoFrau%2Fjwt-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianfrancoFrau%2Fjwt-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GianfrancoFrau","download_url":"https://codeload.github.com/GianfrancoFrau/jwt-tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GianfrancoFrau%2Fjwt-tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279004185,"owners_count":26083689,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["codex","javascript","jwt"],"created_at":"2025-10-10T14:46:06.012Z","updated_at":"2025-10-10T14:46:25.557Z","avatar_url":"https://github.com/GianfrancoFrau.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛠️ JWT Tool\n\n**This experiment was built using OpenAI Codex (with the gpt-5-codex model) as a test to assess its capabilities. Codex generated most of the code, with prompts aimed at implementing specific user-interface features (tab navigation, CSS tweaks, etc.) and code structure.**\n\n## About\n\nJWT Tool is a lightweight, client-side app for encoding, decoding, and verifying JSON Web Tokens (JWTs). It runs entirely in the browser and relies on the Web Crypto API to generate and validate `HS256` signatures without sending data to any backend service.\n\n## Features\n- Encode JSON payloads into signed JWTs using an `HS256` secret.\n- Decode existing tokens and inspect their header and payload segments.\n- Optionally verify the signature of a decoded token against a shared secret.\n- Copy-friendly outputs for tokens, headers, payloads, and signature validation results.\n- Accessible tabbed interface that remembers the active tab via the URL hash.\n\n## Getting Started\n1. Clone or download this repository.\n2. Serve the project directory with a static file server (for example `python3 -m http.server`) or open `index.html` directly in your browser.\n3. Navigate to the served URL (defaults to `http://localhost:8000` when using Python's HTTP server) or the opened file.\n\nBecause everything runs in the browser, no build step or external dependencies are required.\n\n## Usage\n### Encode a token\n1. Open the **Encode** tab.\n2. Enter the shared secret you want to sign with.\n3. Provide a JSON payload. The default prompt shows a sample object; you can paste or type any valid JSON.\n4. Click **Generate token** to produce a signed JWT. Use the **Copy** button to copy the token.\n\n### Decode a token\n1. Switch to the **Decode** tab.\n2. Paste a JWT into the token field.\n3. (Optional) Provide the secret to verify the signature.\n4. Click **Decode** to inspect the header and payload. If a secret is supplied, the app reports whether the signature validates.\n\n## Implementation Notes\n- Cryptographic operations use the browser's native `crypto.subtle` APIs, so signature generation/verification stays on-device.\n- Secrets are never persisted; resetting the form clears all in-memory values.\n- Only `HS256` (HMAC SHA-256) signing is implemented. Other JWT algorithms are out of scope for this tool.\n\n## Development\nThe project consists of static assets (`index.html`, `styles.css`, `jwt.js`, `script.js`). To make changes:\n\n```bash\n# Serve the files with live reload (example using npm's http-server)\nnpx http-server\n```\n\nEdit the files and refresh the browser to see updates. No bundler or transpiler is required.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianfrancofrau%2Fjwt-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgianfrancofrau%2Fjwt-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianfrancofrau%2Fjwt-tool/lists"}