Skip to content

Commit

Permalink
feat: implement nz800 protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveicedgreentea committed Oct 1, 2024
1 parent efd11cc commit af53115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jvcprojector/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ def __init__(
self._keepalive: asyncio.Task | None = None
self._last: float = 0.0

# TODO: try old handshake, if fails, try new one, then error
def _password_to_sha256(self, password: bytes) -> bytes:
"""
Convert a password to sha256 for new models
"""
# TODO: add new models
val = f"{password.decode()}JVCKWPJ"
return hashlib.sha256(val.encode()).hexdigest().encode()

Expand Down

0 comments on commit af53115

Please sign in to comment.