Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support no encryption and escape SSID and password data #9

Merged
merged 2 commits into from
Dec 5, 2021

Conversation

arcanericky
Copy link
Contributor

Background information for these changes can be found on ZXing's Wi-Fi Network config documentation section which is also referenced from the Wikipedia page and section on wifi networks.

No Encryption

No WiFi encryption is now supported. This is enabled on the command line with the -enc option which can be set to NONE, NOPASS, or empty with -enc "" and the user will not be prompted for a password. In the case where an invalid protocol is specified, the selection list now includes a NONE option after which the user is not prompted for a password. As before, the encryption protocol defaults to WPA2.

Escape of SSID and Password

Special characters in the SSID and password are now escaped with backslashes (\).

Increased Unit Testing

Unit tests have been added to support some of the new functionality, for building the string used to generate the QR code (buildSchema) and a few other functions.

Copy link
Owner

@reugn reugn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @arcanericky.

@reugn reugn merged commit cde94ce into reugn:develop Dec 5, 2021
@arcanericky arcanericky deleted the no-enc-support branch January 5, 2022 13:44
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.

2 participants