Skip to content

hardware id changed after macOS upgrade #34

@SeanPedersen

Description

@SeanPedersen

I am using this code - my guess is SystemID changed after the update?:

fn generate_hardware_id() -> String {
    let mut builder = IdBuilder::new(Encryption::SHA256);
    builder
        .add_component(HWIDComponent::SystemID)
        .add_component(HWIDComponent::CPUID);
    // DriverSerial only working on Mac, so we skip it
    #[cfg(target_os = "macos")]
    builder.add_component(HWIDComponent::DriveSerial);
    let hwid = builder.build(".:.").unwrap();
    return hwid;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions