Skip to content

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

Open
jmif wants to merge 2 commits into
Taptiive:mainfrom
jmif:main
Open

Trim newlines from machine ID file read on linux + support plain sha256 digest#30
jmif wants to merge 2 commits into
Taptiive:mainfrom
jmif:main

Conversation

@jmif

@jmif jmif commented Aug 1, 2024

Copy link
Copy Markdown

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