Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

why use username in "HWID" (Hardware ID ) #2

Closed
MOMIN5 opened this issue Jun 29, 2021 · 2 comments
Closed

why use username in "HWID" (Hardware ID ) #2

MOMIN5 opened this issue Jun 29, 2021 · 2 comments

Comments

@MOMIN5
Copy link

MOMIN5 commented Jun 29, 2021

hwid is supposed to be system id why you have username in it
plus most of your System.getenv() return null, cause they are environment variable and windows doesnt set most of them on default

@zzurio
Copy link
Owner

zzurio commented Jun 29, 2021

Hi there, username was added to be combined with the Hardware ID to make the authentication more complex. This is designed for minecraft mods, and to only allow certain users to be able to run your mod, hence why I combined the username with the Hardware ID. Regarding any null checks or potential crashes which need to be prevented please feel free to submit a pull request with those fixes if need be. Thanks!

@MOMIN5
Copy link
Author

MOMIN5 commented Jun 30, 2021

got it 👍
regarding the envs that returns null, the alterative is kinda complicated, so this should be good enough ig

@MOMIN5 MOMIN5 closed this as completed Jun 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants