{"id":24743434,"url":"https://github.com/layerdynamics/jwt-secret-cli","last_synced_at":"2026-02-18T07:02:40.386Z","repository":{"id":261690041,"uuid":"885044261","full_name":"LayerDynamics/jwt-secret-cli","owner":"LayerDynamics","description":"A CLI tool to generate secure JWT secrets","archived":false,"fork":false,"pushed_at":"2024-11-07T21:58:48.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T09:25:10.351Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LayerDynamics.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":"2024-11-07T21:16:12.000Z","updated_at":"2024-11-07T21:58:51.000Z","dependencies_parsed_at":"2024-11-09T09:32:21.526Z","dependency_job_id":null,"html_url":"https://github.com/LayerDynamics/jwt-secret-cli","commit_stats":null,"previous_names":["layerdynamics/jwt-secret-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LayerDynamics/jwt-secret-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fjwt-secret-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fjwt-secret-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fjwt-secret-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fjwt-secret-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LayerDynamics","download_url":"https://codeload.github.com/LayerDynamics/jwt-secret-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LayerDynamics%2Fjwt-secret-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29571888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"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":[],"created_at":"2025-01-28T01:36:09.532Z","updated_at":"2026-02-18T07:02:40.366Z","avatar_url":"https://github.com/LayerDynamics.png","language":"JavaScript","readme":"\n# jwt-secret-cli\n\n`jwt-secret-cli` is a **Command Line Interface (CLI)** tool designed to generate secure JSON Web Token (JWT) secrets effortlessly. Enhance the security of your applications by creating strong, customizable secrets for JWTs used in authentication and authorization mechanisms.\n\n## Features\n\n- **Generate Secure Secrets:** Create cryptographically strong secrets to safeguard your JWTs.\n- **Customizable Length:** Specify the length of the generated secret to meet your security requirements.\n- **Flexible Formats:** Choose between hexadecimal (`hex`) and Base64 (`base64`) formats for your secrets.\n- **Simple CLI Interface:** Intuitive commands and options for seamless integration into your workflow.\n- **Production-Ready:** Robust error handling and tested functionalities ensure reliability in production environments.\n\n## Installation\n\nYou can install `jwt-secret-cli` globally using [npm](https://www.npmjs.com/):\n\n```bash\nnpm install -g jwt-secret-cli\n```\n\nAlternatively, if you prefer to use it without installing globally, you can use `npx`:\n\n```bash\nnpx jwt-secret-cli [options]\n```\n\n## Usage\n\nAfter installation, you can use the `jwt-secret-cli` command in your terminal.\n\n### Basic Command\n\nGenerate a secret with default settings (64 characters in hexadecimal format):\n\n```bash\njwt-secret-cli\n```\n\n**Output:**\n\n```\ne5f8c3b2a1d4e6f7b8c9d0e1f2a3b4c5d6e7f8g9h0i1j2k3l4m5n6o7p8q9r0s1t2u3v4w5x6y7z8\n```\n\n### Options\n\n- `-l, --length \u003cnumber\u003e`: **Length of the secret** (default: `64`).\n- `-f, --format \u003ctype\u003e`: **Format of the secret** (`hex` or `base64`, default: `hex`).\n- `-h, --help`: Display help for command.\n- `-V, --version`: Output the version number.\n\n### Examples\n\n1. **Generate a 128-Character Hexadecimal Secret**\n\n   ```bash\n   jwt-secret-cli -l 128\n   ```\n\n   **Output:**\n\n   ```\n   a3b4c5d6e7f8g9h0i1j2k3l4m5n6o7p8q9r0s1t2u3v4w5x6y7z8a9b0c1d2e3f4g5h6i7j8k9l0m1n2o3p4q5r6s7t8u9v0w1x2y3z4\n   ```\n\n2. **Generate a 64-Character Base64 Secret**\n\n   ```bash\n   jwt-secret-cli -f base64\n   ```\n\n   **Output:**\n\n   ```\n   QWxhZGRpbjpvcGVuIHNlc2FtZSBJbmNpZGVudGlhbC1CYXR0ZXJ5U2VjcmV0VG9rZW4=\n   ```\n\n3. **Generate a 32-Character Base64 Secret**\n\n   ```bash\n   jwt-secret-cli -l 32 -f base64\n   ```\n\n   **Output:**\n\n   ```\n   U29tZVNlY3JldFN0cmluZzEyMzQ1Ng==\n   ```\n\n### Help\n\nTo view all available options and commands:\n\n```bash\njwt-secret-cli --help\n```\n\n**Output:**\n\n```\nUsage: jwt-secret-cli [options]\n\nA CLI tool to generate secure JWT secrets\n\nOptions:\n  -V, --version           output the version number\n  -l, --length \u003cnumber\u003e   Length of the secret (default: 64)\n  -f, --format \u003ctype\u003e     Format of the secret (hex/base64) (default: hex)\n  -h, --help              display help for command\n```\n\n## Contributing\n\nContributions are welcome! If you have suggestions, bug reports, or improvements, please follow these steps:\n\n1. **Fork the Repository**\n\n   Click the [Fork](https://github.com/LayerDynamics/jwt-secret-cli/fork) button at the top right of this page.\n\n2. **Clone Your Fork**\n\n   ```bash\n   git clone https://github.com/LayerDynamics/jwt-secret-cli.git\n   cd jwt-secret-cli\n   ```\n\n3. **Create a New Branch**\n\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n\n4. **Make Your Changes**\n\n   Implement your feature or fix.\n\n5. **Commit Your Changes**\n\n   ```bash\n   git commit -m \"Add feature: your feature description\"\n   ```\n\n6. **Push to Your Fork**\n\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n\n7. **Open a Pull Request**\n\n   Go to the [original repository](https://github.com/LayerDynamics/jwt-secret-cli.git) and click on the **Compare \u0026 pull request** button.\n\n## License\n\nThis project is licensed under the [Unlicense](./LICENSE), which dedicates it to the public domain. You are free to use, modify, and distribute this software for any purpose without any restrictions.\n\nFor more details, please refer to the [LICENSE](./LICENSE) file.\n\n## Repository\n\nThe source code for `jwt-secret-cli` is hosted on GitHub:\n\n🔗 [https://github.com/LayerDynamics/jwt-secret-cli.git](https://github.com/LayerDynamics/jwt-secret-cli.git)\n\n## Author\n\n**LayerDynamics**\n\n- [GitHub](https://github.com/LayerDynamics)\n- [Twitter](https://twitter.com/LayerDynamics) *(if applicable)*\n\n## Acknowledgements\n\n- Thanks to the open-source community for providing the tools and libraries that make projects like this possible.\n- Inspired by the need for secure and easy-to-use JWT secret generators.\n\n---\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerdynamics%2Fjwt-secret-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayerdynamics%2Fjwt-secret-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayerdynamics%2Fjwt-secret-cli/lists"}