{"id":15064111,"url":"https://github.com/jersoncarin/unique-key-gen","last_synced_at":"2026-01-02T21:51:05.426Z","repository":{"id":251307359,"uuid":"837021311","full_name":"jersoncarin/unique-key-gen","owner":"jersoncarin","description":"Hardware Identifiers and Unique Key Generator","archived":false,"fork":false,"pushed_at":"2024-08-02T03:59:17.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T09:28:16.466Z","etag":null,"topics":["bash","hash","powershell","sha256","unique-identifier"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/jersoncarin.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-08-02T03:48:33.000Z","updated_at":"2025-01-09T06:02:13.000Z","dependencies_parsed_at":"2024-08-02T05:12:29.034Z","dependency_job_id":null,"html_url":"https://github.com/jersoncarin/unique-key-gen","commit_stats":null,"previous_names":["jersoncarin/unique-key-gen"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersoncarin%2Funique-key-gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersoncarin%2Funique-key-gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersoncarin%2Funique-key-gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersoncarin%2Funique-key-gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jersoncarin","download_url":"https://codeload.github.com/jersoncarin/unique-key-gen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243786100,"owners_count":20347580,"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":["bash","hash","powershell","sha256","unique-identifier"],"created_at":"2024-09-25T00:11:35.799Z","updated_at":"2026-01-02T21:51:05.386Z","avatar_url":"https://github.com/jersoncarin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hardware Identifiers and Unique Key Generator\n\nThis repository contains scripts to retrieve hardware identifiers (BIOS serial number, processor ID, and motherboard serial number) and generate a unique SHA-256 hash based on these identifiers.\n\n## Prerequisites\n\n### Windows\n- PowerShell (run as Administrator to ensure access to WMI objects)\n\n### Linux\n- `dmidecode` (usually requires root privileges)\n- `lscpu`\n\n### macOS\n- `ioreg`\n- `system_profiler`\n\n## Usage\n\n### Clone the Repository\n\n```bash\ngit clone https://github.com/jersoncarin/unique-key-gen.git\ncd unique-key-gen\n```\n\n### Windows\n\n1. **Open PowerShell with Administrator privileges**.\n\n2. **Navigate to the script directory**.\n\n    ```powershell\n    cd path\\to\\unique-key-gen\n    ```\n\n3. **Run the PowerShell script**:\n\n    ```powershell\n    .\\gen-key.ps1\n    ```\n\n4. **Output**: The script will output a unique SHA-256 hash based on your hardware identifiers.\n\n### Linux and macOS\n\n1. **Ensure you have the necessary tools** (`dmidecode`, `lscpu` for Linux; `ioreg`, `system_profiler` for macOS).\n\n2. **Open a terminal**.\n\n3. **Navigate to the script directory**:\n\n    ```bash\n    cd path/to/unique-key-gen\n    ```\n\n4. **Run the Bash script**:\n\n    ```bash\n    sudo ./gen-key.sh\n    ```\n\n5. **Output**: The script will output a unique SHA-256 hash based on your hardware identifiers.\n\n## Script Details\n\n### Windows (`gen-key.ps1`)\n\n- **Get-HardwareIdentifiers**: Retrieves BIOS serial number, processor ID, and motherboard serial number.\n- **New-UniqueKey**: Generates a unique SHA-256 hash based on the hardware identifiers.\n\n### Linux and macOS (`gen-key.sh`)\n\n- **getHardwareIdentifiers**: Retrieves BIOS serial number, processor ID, and motherboard serial number.\n- **generateUniqueKey**: Generates a unique SHA-256 hash based on the hardware identifiers.\n\n## Example\n\n### Windows\n\n```powershell\nPS C:\\path\\to\\script\u003e .\\gen-key.ps1\ne99a18c428cb38d5f260853678922e03abd833178bfc1e5763c96f2f2ffcfef3\n```\n\n### Linux and macOS\n\n```bash\n$ sudo ./gen-key.sh\ne99a18c428cb38d5f260853678922e03abd833178bfc1e5763c96f2f2ffcfef3\n```\n\n## Contributing\n\nFeel free to fork this repository, create a new branch, and submit a pull request with your improvements.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjersoncarin%2Funique-key-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjersoncarin%2Funique-key-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjersoncarin%2Funique-key-gen/lists"}