Skip to content

Commit 95e8aed

Browse files
committed
Major updates
1 parent 5372664 commit 95e8aed

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

licensechain/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ async def validate_license(
463463
return await self._post("/licenses/verify", payload)
464464

465465
def _default_hwuid(self) -> str:
466-
raw = f"{socket.gethostname()}|{platform.system()}|{platform.machine()}|{platform.version()}"
466+
raw = f"licensechain|python|{socket.gethostname()}|{platform.system()}|{platform.machine()}"
467467
return hashlib.sha256(raw.encode("utf-8")).hexdigest()
468468

469469
async def revoke_license(

licensechain/services/license_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def validate(self, license_key: str, hwuid: Optional[str] = None) -> bool:
6060
if hwuid and hwuid.strip():
6161
payload['hwuid'] = hwuid.strip()
6262
else:
63-
raw = f"{socket.gethostname()}|{platform.system()}|{platform.machine()}|{platform.version()}"
63+
raw = f"licensechain|python|{socket.gethostname()}|{platform.system()}|{platform.machine()}"
6464
payload['hwuid'] = hashlib.sha256(raw.encode("utf-8")).hexdigest()
6565
response = self.api_client.post('/licenses/verify', payload)
6666
return response.get('valid', False)

0 commit comments

Comments
 (0)