{"id":33938775,"url":"https://github.com/taptiive/machineid-rs","last_synced_at":"2026-03-17T20:03:13.852Z","repository":{"id":41957328,"uuid":"390830416","full_name":"Taptiive/machineid-rs","owner":"Taptiive","description":"Create a unique MachineID/HWID/UUID with customizable options, like .Net DeviceId","archived":false,"fork":false,"pushed_at":"2024-08-08T21:57:41.000Z","size":51,"stargazers_count":81,"open_issues_count":14,"forks_count":35,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-14T03:13:21.709Z","etag":null,"topics":["auth","authentication","deviceid","hardware-id","hardwareid","hostid","hwid","library","login","machineid","rust","uuid"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Taptiive.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}},"created_at":"2021-07-29T19:30:16.000Z","updated_at":"2025-07-11T18:14:08.000Z","dependencies_parsed_at":"2024-07-20T18:59:10.436Z","dependency_job_id":null,"html_url":"https://github.com/Taptiive/machineid-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Taptiive/machineid-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taptiive%2Fmachineid-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taptiive%2Fmachineid-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taptiive%2Fmachineid-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taptiive%2Fmachineid-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Taptiive","download_url":"https://codeload.github.com/Taptiive/machineid-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taptiive%2Fmachineid-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: 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":["auth","authentication","deviceid","hardware-id","hardwareid","hostid","hwid","library","login","machineid","rust","uuid"],"created_at":"2025-12-12T15:04:01.483Z","updated_at":"2026-03-17T20:03:13.847Z","avatar_url":"https://github.com/Taptiive.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Check, build and deploy!](https://github.com/Taptiive/machineid-rs/actions/workflows/action.yml/badge.svg)](https://github.com/Taptiive/machineid-rs/actions/workflows/action.yml)\n\u003ca href=\"https://crates.io/crates/machineid-rs\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/machineid-rs?style=for-the-badge\u0026logo=rust\u0026color=orange\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://docs.rs/machineid-rs/latest/machineid_rs/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/docs-latest-blue.svg?style=for-the-badge\u0026logo=rust\u0026color=blue\"\n      alt=\"docs.rs docs\" /\u003e\n\u003c/a\u003e\n\n## MachineID for Rust - Like .Net DeviceId\n\nThis Rust package is inspired by [DeviceId](https://github.com/MatthewKing/DeviceId), a .Net package to build a unique Machine ID.\n\n### Features\n\n- 3 Different types of hash (*MD5*, *SHA1*, *SHA256*)\n- Different components to make the ID\n- Support for Windows, Linux and MacOS\n- No Admin privileges are required\n\n### How to use\n\nFirst add this to your Cargo.toml file\n\n```toml\n[dependencies]\nmachineid-rs = \"1.2.4\"\n```\n\nThen, you need to define the builder variable with the encryption type you want.\n\nFor example, **SHA256**\n```rust\nuse machineid_rs::{IdBuilder, Encryption};\n\n// There are 3 different encryption types: MD5, SHA1 and SHA256.\nlet mut builder = IdBuilder::new(Encryption::SHA256);\n```\n\nAfter that, you just need to add the components you want the id to have.\n\nThe available components are:\n\n- **System UUID**: Unique identifier of your machine\n  \n- **CPU Cores**: Number of physical cores from your computer\n  \n- **OS Name**: Operative System name, i.e., linux/windows\n  \n- **Username**: The username currently being used\n  \n- **Machine Name**: The name of the machine\n  \n- **CPU ID**: The serial number of the processor\n  \n- **Drive Serial** : The serial number of the disk storing the OS.\n  \nFor example, i will add the System UUID and CPU Cores\n```rust\nuse machineid_rs::HWIDComponent;\n\nbuilder.add_component(HWIDComponent::SystemID).add_component(HWIDComponent::CPUCores);\n```\n\nOnce you are ready, you just need to build the id with your key\n\n```rust\nlet hwid = builder.build(\"mykey\").unwrap();\n```\n\n### Todo\n\n- Optimize the code\n- Fix bugs and increase platform integration/stability\n  \n*Feel free to report any bug you find! ;)*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaptiive%2Fmachineid-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaptiive%2Fmachineid-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaptiive%2Fmachineid-rs/lists"}