Crate app_machine_id

Source
Expand description

Generate app-specific machine IDs derived from the machine ID defined in /etc/machine-id and an application ID.

Unlike the default machine ID, which should be considered “confidential”, this implementation uses HMAC-SHA256 to generate an app-specific machine ID which could be used in less secure contexts.

This implementation is based on systemd’s sd_id128_get_machine_app_specific().

See man machine-id(5) and man sd_id128_get_machine(3) for details.

Enums§

Error
Returned when reading the machine ID fails.

Functions§

get
Generate an app-specific machine ID derived from the machine ID defined in /etc/machine-id and an application ID.