{"id":23462312,"url":"https://github.com/nimacodez/keygn","last_synced_at":"2025-04-14T06:54:55.770Z","repository":{"id":221135137,"uuid":"753315900","full_name":"NimaCodez/keygn","owner":"NimaCodez","description":"🪄 A Command Line Tool To Make random keys with different lengths for your different purposes.","archived":false,"fork":false,"pushed_at":"2024-08-22T10:40:43.000Z","size":27,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T06:54:51.146Z","etag":null,"topics":["authentication","cli","cmd","decode","encode","hashing","jwt","jwt-token","security","token"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/keygn","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/NimaCodez.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-02-05T22:00:20.000Z","updated_at":"2025-04-08T18:49:56.000Z","dependencies_parsed_at":"2024-08-22T12:04:59.314Z","dependency_job_id":"533922f4-826e-41f1-b395-a336969c4534","html_url":"https://github.com/NimaCodez/keygn","commit_stats":null,"previous_names":["nimacodez/keygen.js","nimacodez/keygn"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimaCodez%2Fkeygn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimaCodez%2Fkeygn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimaCodez%2Fkeygn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NimaCodez%2Fkeygn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NimaCodez","download_url":"https://codeload.github.com/NimaCodez/keygn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837281,"owners_count":21169374,"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":["authentication","cli","cmd","decode","encode","hashing","jwt","jwt-token","security","token"],"created_at":"2024-12-24T08:16:24.723Z","updated_at":"2025-04-14T06:54:55.741Z","avatar_url":"https://github.com/NimaCodez.png","language":"JavaScript","readme":"# keygn\n\n#### :fire: The Ultimate CommandLine Tool for creating different type of keys instantly, to make your development faster.\n\n🧐 Have you ever wanted to generate a secret key for your access tokens and resfresh tokens and etc?\n✅ Well it would be a yes definetely.\n\n# Practices\nAt First glance you'd say: \"Ok, I will find a hard and meaning-less sentence and hash it using MD5 (horrible) or SHA family and use it as a secret (or salt). \u003cb\u003e*but this is actually a bad security practice.*\u003c/b\u003e ❌\nCause as you know all those senteces and words could be converted back to their readable way.\n\n### ☹️ What should we do then?\nAha! here you are.\n\u003cb\u003e Use `keygn` right into your cmd and generate a safe key for any kind of encoding and decoding things you want to do!\n\n## 🚀 Installation\n```sh\nnpm i -g keygn\n```\n\n## 🪄 Usage\n```sh\nkeygn\n```\n\n1. Answer the first question about the length. (e.g `64` would generate a 64 byte key).\n![image](https://github.com/NimaCodez/keygn/assets/85389307/f79a7e60-cdfa-45f6-8377-0f2b8a58e521)\n\n2. Then Choose how your key should be given to you. \u003c/br\u003e\n![image](https://github.com/NimaCodez/keygn/assets/85389307/c6843af7-5cf2-4a77-9ca7-05f8953c7190)\n\n3. 👽 And Done!\n![image](https://github.com/NimaCodez/keygn/assets/85389307/8e80d51e-6e1f-485b-a6dd-87f44480fe12)\n\n\u003cb\u003e\u003cem\u003eTip: both questions have default values (64 for length adn Hexadecimal (hex) for key type). So you can just press [Enter] and Chill 🦭\n\nSample Output:\n```sh\nYOUR KEY: 3ba15c658a6c9c659908cb6893d9761a26e0641af33a0cb396a13d9e7b928c626882d3b050575b027da0717c48c745d633a5dfe7d4523aeea89648b508d864f9 (✨ Copied to clipboard)\n```\n✨ The generated key is automatically copied to the clipboard.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimacodez%2Fkeygn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnimacodez%2Fkeygn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnimacodez%2Fkeygn/lists"}