machineid-rs icon indicating copy to clipboard operation
machineid-rs copied to clipboard

The hwid changed after upgrading to 14.1

Open doroved opened this issue 2 years ago • 2 comments

I have this set of components installed

builder
        .add_component(HWIDComponent::SystemID)
        .add_component(HWIDComponent::CPUCores)
        .add_component(HWIDComponent::CPUID)
        .add_component(HWIDComponent::DriveSerial)
        .add_component(HWIDComponent::MacAddress);

I upgraded my mac from 14.0 to 14.1 and my hwid changed. What could be the reason and how can I avoid this seemingly critical problem?

doroved avatar Nov 02 '23 20:11 doroved

Do not use this setting to create Machine IDs of your Mac application users' devices, because after each system update, this setting changes.

diskutil info / | grep 'Volume UUID' | awk '{print $3}'

.add_component(HWIDComponent::DriveSerial) - is not a constant value

doroved avatar Nov 22 '23 16:11 doroved

Interesting. The thing is i honestly haven't been able to find a better approach for this function in MacOS, so any suggestions are appreciated ;)

Taptiive avatar Jul 20 '24 18:07 Taptiive