#uid #machine-id #linux #hostid #app-id

app-machine-id

Generate app-specific machine IDs

1 unstable release

0.1.0 Feb 20, 2023

#753 in Unix APIs

LGPL-2.1-or-later

13KB
92 lines

app-machine-id

Build Status Crates.io Documentation License: LGPL-2.1-or-later

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.

License

This project is licensed under GNU Lesser General Public License version 2.1 or later (LGPL-2.1-or-later).

Dependencies

~245KB