Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim newlines from machine ID file read on linux + support plain sha256 digest #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jmif
Copy link

@jmif jmif commented Aug 1, 2024

A newline character is read from the machine ID file on Linux and this newline is included in the hash of the ID, changing its value. This PR trims the hwid result before returning to remove the newline.

There are likely some backwards compatibility issues to consider here as this will change the machine IDs that are output from this library.

@jmif jmif changed the title Trim newlines from machine ID file read on linux Trim newlines from machine ID file read on linux + support no HMAC Sep 11, 2024
@jmif jmif changed the title Trim newlines from machine ID file read on linux + support no HMAC Trim newlines from machine ID file read on linux + support plain sha256 digest Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant