Skip to content

Update password validation logic in connection.py - #1

Open
lyubomirtraykov wants to merge 4 commits into
fedem95:masterfrom
lyubomirtraykov:master
Open

Update password validation logic in connection.py#1
lyubomirtraykov wants to merge 4 commits into
fedem95:masterfrom
lyubomirtraykov:master

Conversation

@lyubomirtraykov

Copy link
Copy Markdown

Refactor password validation to check for ASCII only.

Authentication can be performed in 3 ways:

  • Without password, via IP of the device within the IP range enabled in the gateway
  • With numeric password (at least 5 characters) for gateways that use simple password
  • With alphanumeric password (from 5 to 16 characters) for the gateways that implement HMAC authentication (eg MHS1 or F454 with the HMAC option enabled)

Refactor password validation to check for ASCII only.
Authentication can be performed in 3 ways:
* Without password, via IP of the device within the IP range enabled in the gateway
* With numeric password (at least 5 characters) for gateways that use simple password
* With alphanumeric password (from 5 to 16 characters) for the gateways that implement HMAC authentication (eg MHS1 or F454 with the HMAC option enabled)
Ensure OpenWebNet password is alphanumeric.
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