MachineID for Rust - Like .Net DeviceId

This Rust package is inspired by DeviceId, a .Net package to build a unique Machine ID.

Features

How to use

First add this to your Cargo.toml file

toml [dependencies] machineid-rs = "1.2"

Then, you need to define the builder variable with the encryption type you want.

For example, SHA256 ```rust use machineid_rs::{IdBuilder, Encryption};

// There are 3 different encryption types: MD5, SHA1 and SHA256. let mut builder = IdBuilder::new(Encryption::SHA256); ```

After that, you just need to add the components you want the id to have.

The available components are:

For example, i will add the System UUID and CPU Cores ```rust use machineid_rs::HWIDComponent;

builder.addcomponent(HWIDComponent::SystemID).addcomponent(HWIDComponent::CPUCores); ```

Once you are ready, you just need to build the id with your key

rust let hwid = builder.build("mykey").unwrap();

Todo

Feel free to report any bug you find! ;)